IOTstack
IOTstack copied to clipboard
docker install fails
I'm running latest OSMC, which runs raspbian so I'm sure this will apply there as well.
I kept getting errors after upgrading which made me think I broke something. Fresh install of OS and ran the latest version of this script and got the same issue.
See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2021-01-27 15:44:21 PST; 56ms ago
Docs: https://docs.docker.com
Process: 1274 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 1274 (code=exited, status=1/FAILURE)
dpkg: error processing package docker-ce (--configure):
installed docker-ce package post-installation script subprocess returned error exit status 1
Two issues I found here.
- The socket descriptor has changed from fd:// to unix://. Fix this by editing
/lib/systemd/system/docker.service - next I think you have to run
sudo systemctl disable /lib/systemd/system/docker.servicethen re-enable it - next I started getting errors with iptables, it seems the latest version of iptables is incompatible.. to fix this I simply
sudo ln -s $(which iptables-legacy) /usr/local/bin/iptables
It started after that.. hope this helps
Please see This Project Is Dormant.
I'm not saying this won't happen on SensorsIot/IOTstack but at least it's the active repo so you're more likely to get help there than here.
Please try to remember to close this issue.
@Paraphraser thanks!