Ubuntu の Docker が起動しない

2019-07-01 08:09 (5年前) ytyng
View in English
$ sudo systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2019-07-01 07:48:16 JST; 7min ago
Docs: https://docs.docker.com
Process: 1521 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -s overlay2 (code=exited, status=203/EXEC)
Main PID: 1521 (code=exited, status=203/EXEC)
Jul 01 07:48:14 sagittarius systemd[1521]: docker.service: Failed at step EXEC spawning /usr/bin/dockerd: No such file or directory
Jul 01 07:48:14 sagittarius systemd[1]: docker.service: Main process exited, code=exited, status=203/EXEC
Jul 01 07:48:14 sagittarius systemd[1]: docker.service: Failed with result 'exit-code'.
Jul 01 07:48:14 sagittarius systemd[1]: Failed to start Docker Application Container Engine.
Jul 01 07:48:16 sagittarius systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Jul 01 07:48:16 sagittarius systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Jul 01 07:48:16 sagittarius systemd[1]: Stopped Docker Application Container Engine.
Jul 01 07:48:16 sagittarius systemd[1]: docker.service: Start request repeated too quickly.
Jul 01 07:48:16 sagittarius systemd[1]: docker.service: Failed with result 'exit-code'.
Jul 01 07:48:16 sagittarius systemd[1]: Failed to start Docker Application Container Engine.

$ grep ExecStart /lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

$ ls /usr/bin/docker*
/usr/bin/docker* /usr/bin/docker-init* /usr/bin/docker-proxy* /usr/bin/dockerd-ce*

/usr/bin/dockerd がいない

/usr/bin/docker を /usr/bin/docker-ce に書き換え

$ grep ExecStart /lib/systemd/system/docker.service
# ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
ExecStart=/usr/bin/dockerd-ce -H fd:// --containerd=/run/containerd/containerd.sock

$ sudo systemctl daemon-reload
$ sudo systemctl start docker

起動した

現在の評価: 1
タイトルとURLをコピー

コメント

アーカイブ

2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011