Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker install fails #226

Open
jiveman opened this issue Jan 28, 2021 · 2 comments
Open

docker install fails #226

jiveman opened this issue Jan 28, 2021 · 2 comments

Comments

@jiveman
Copy link

jiveman commented Jan 28, 2021

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.service then 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

@Paraphraser
Copy link
Contributor

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.

@jiveman
Copy link
Author

jiveman commented Jan 28, 2021

@Paraphraser thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants