Skip to content

Instantly share code, notes, and snippets.

@john-light
Last active March 29, 2020 02:31
Show Gist options
  • Save john-light/0fde66e399417efaad8bf560ba687eeb to your computer and use it in GitHub Desktop.
Save john-light/0fde66e399417efaad8bf560ba687eeb to your computer and use it in GitHub Desktop.
Failed Docker install
sudo apt-get install docker-ce
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 Sun 2020-03-29 xx:xx; 49ms ago
Docs: https://docs.docker.com
Process: 13129 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 13129 (code=exited, status=1/FAILURE)
Mar 29 xx:xx light systemd[1]: Failed to start Docker Application Container Engine.
Mar 29 xx:xx light systemd[1]: docker.service: Unit entered failed state.
Mar 29 xx:xx light systemd[1]: docker.service: Failed with result 'exit-code'.
dpkg: error processing package docker-ce (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (229-4ubuntu21.27) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)
systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Sun 2020-03-29 xx:xx; 1min 12s ago
Docs: https://docs.docker.com
Process: 13399 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 13399 (code=exited, status=1/FAILURE)
Mar 29 xx:xx light systemd[1]: Failed to start Docker Application Container Engine.
Mar 29 xx:xx light systemd[1]: docker.service: Unit entered failed state.
Mar 29 xx:xx light systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 29 xx:xx light systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Mar 29 xx:xx light systemd[1]: Stopped Docker Application Container Engine.
Mar 29 xx:xx light systemd[1]: docker.service: Start request repeated too quickly.
Mar 29 xx:xx light systemd[1]: Failed to start Docker Application Container Engine.
Mar 29 xx:xx light systemd[1]: docker.service: Unit entered failed state.
Mar 29 xx:xx light systemd[1]: docker.service: Failed with result 'start-limit-hit'.
journalctl -xe
Mar 29 xx:xx light dockerd[13399]: time="2020-03-29Txx:xx" level=warning msg="Your kernel does not support cgroup rt period"
Mar 29 xx:xx light dockerd[13399]: time="2020-03-29Txx:xx" level=warning msg="Your kernel does not support cgroup rt runtime"
Mar 29 xx:xx light dockerd[13399]: time="2020-03-29Txx:xx" level=info msg="Loading containers: start."
Mar 29 xx:xx light dockerd[13399]: time="2020-03-29Txx:xx" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
Mar 29 xx:xx light dockerd[13399]: failed to start daemon: Error initializing network controller: list bridge addresses failed: PredefinedLocalScopeDefaultNetworks List: [172.17.0.0/16 172.18.0.0/16 172.19.0.0/16 172.20.0.0/16 172.21.0.
Mar 29 xx:xx light systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Mar 29 xx:xx light systemd[1]: Failed to start 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 failed.
Mar 29 xx:xx light systemd[1]: docker.service: Unit entered failed state.
Mar 29 xx:xx light systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 29 xx:xx light systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Mar 29 xx:xx light 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.
Mar 29 xx:xx light systemd[1]: Closed Docker Socket for the API.
-- Subject: Unit docker.socket has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit docker.socket has finished shutting down.
Mar 29 xx:xx light systemd[1]: Stopping Docker Socket for the API.
-- Subject: Unit docker.socket has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit docker.socket has begun shutting down.
Mar 29 xx:xx light systemd[1]: Starting Docker Socket for the API.
-- Subject: Unit docker.socket has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit docker.socket has begun starting up.
Mar 29 xx:xx light systemd[1]: Listening on Docker Socket for the API.
-- Subject: Unit docker.socket has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit docker.socket has finished starting up.
--
-- The start-up result is done.
Mar 29 xx:xx light systemd[1]: docker.service: Start request repeated too quickly.
Mar 29 xx:xx light systemd[1]: Failed to start 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 failed.
Mar 29 xx:xx light systemd[1]: docker.socket: Unit entered failed state.
Mar 29 xx:xx light systemd[1]: docker.service: Unit entered failed state.
Mar 29 xx:xx light systemd[1]: docker.service: Failed with result 'start-limit-hit'.
@john-light
Copy link
Author

Ok... after about an hour of searching around I think I found the solution:

sudo ip link add name docker0 type bridge
anon@anon ~ $ sudo ip addr add dev docker0 172.17.0.1/16

via docker/for-linux#123 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment