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

Errors installing Docker 18.09 on systemd systems #97

Closed
nre-ableton opened this issue Nov 12, 2018 · 6 comments
Closed

Errors installing Docker 18.09 on systemd systems #97

nre-ableton opened this issue Nov 12, 2018 · 6 comments

Comments

@nre-ableton
Copy link

When using this role on a freshly-deployed Ubuntu 16.04 host, we are getting the following error:

Unable to restart service docker: Job for docker.service failed because the control process exited with error code. See \"systemctl status docker.service\" and \"journalctl -xe\" for details.\n
@geerlingguy
Copy link
Owner

Yeah, I'm also getting that with Docker 18.09 on 18.04, CentOS 7, Debian 9, and basically everywhere. I think something in 18.09 is blowing everything up.

Looking in the logs, I see:

Nov 12 22:55:11 instance systemd[1]: Starting containerd container runtime...
-- Subject: Unit containerd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit containerd.service has begun starting up.
Nov 12 22:55:11 instance systemd[1]: Starting Docker Application Container Engine...
-- Subject: Unit docker.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.service has begun starting up.
Nov 12 22:55:11 instance systemd[1]: containerd.service: control process exited, code=exited status=1
Nov 12 22:55:11 instance systemd[1]: Failed to start containerd container runtime.
-- Subject: Unit containerd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit containerd.service has failed.
-- 
-- The result is failed.
Nov 12 22:55:11 instance systemd[1]: Dependency failed for Docker Application Container Engine.
-- Subject: Unit docker.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.service has failed.
-- 
-- The result is dependency.
Nov 12 22:55:11 instance systemd[1]: Job docker.service/start failed with result 'dependency'.
Nov 12 22:55:11 instance systemd[1]: Unit containerd.service entered failed state.
Nov 12 22:55:11 instance systemd[1]: containerd.service failed.
Nov 12 22:55:11 instance systemd[1]: Stopped Docker Application Container Engine.
-- Subject: Unit docker.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.service has finished shutting down.

So... there's some dependency issue in 18.09 :/

@geerlingguy
Copy link
Owner

Related: containerd/containerd#2772

@geerlingguy geerlingguy changed the title Errors on Ubuntu 16.04 hosts Errors installing Docker 18.09 on systemd systems Nov 12, 2018
@geerlingguy
Copy link
Owner

And the fix is here: containerd/containerd#2776

See also: docker/for-linux#475

It seems like we might just need to wait for a new release? Otherwise I'd have to either hack the containerd unit file, or get that modprobe command to work.

@geerlingguy
Copy link
Owner

So... I don't know what to do currently. I could patch around this at least temporarily using the hack overriding the ExecStartPre command as suggested in the docker/for-linux issue linked in the previous comment, but that feels annoying and pointless since the next release will fix this issue.

But I hate failing builds, and I'm now up to 5 public GitHub projects and 2 private ones which have failing builds... and I hate failing builds.

@geerlingguy
Copy link
Owner

@nre-ableton
Copy link
Author

@geerlingguy Thanks for the quick fix and the investigations! 👍

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