dockerのデーモンを動かしたい
Ubuntu18.04.1を使用しdockeを以下の手順でインストールしていますが、デーモンが実行されていないというエラーがでておりエラーの原因はデーモンがinactiveになっていることだと思うのですが、解決方法がわかりません。
どなたかご教授お願いできますでしょうか。
発生している問題・エラーメッセージ
sudo service docker status ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: enabled) Active: **inactive (dead)** Docs: https://docs.docker.com ~$ sudo docker search centos | more Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
該当のソースコード
#以下の手順でインストールしています $ sudo apt-get update $ sudo apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ software-properties-common $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - $ sudo apt-key fingerprint 0EBFCD88 $ sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" $ sudo apt-get update $ sudo apt-get install -y docker-ce
試したこと
~$ sudo service start docker
start: unrecognized service
~$ sudo systemctl start docker
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
再起動
補足情報(FW/ツールのバージョンなど)
Ubuntu18.04.1
~$sudo apt-get update
を実行した際にキーが期限切れとなっていたため
~$sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 23E7166788B63E1E
を実行しています。
journalctl-xeを実行すると以下が表示されます
-- Subject: Unit docker.socket has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- Unit docker.socket has begun starting up.
Apr 19 06:44:55 doc4 systemd[1]: Listening on Docker Socket for the API.
-- Subject: Unit docker.socket has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- Unit docker.socket has finished starting up.
-- The start-up result is RESULT.
Apr 19 06:44:55 doc4 systemd[1]: docker.service: Start request repeated too quickly.
Apr 19 06:44:55 doc4 systemd[1]: docker.service: Failed with result 'exit-code'.
Apr 19 06:44:55 doc4 systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- Unit docker.service has failed.
-- The result is RESULT.
Apr 19 06:44:55 doc4 systemd[1]: docker.socket: Failed with result 'service-start-limit-hit'.
Apr 19 06:45:01 doc4 CRON[5068]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 19 06:45:01 doc4 CRON[5069]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Apr 19 06:45:01 doc4 CRON[5068]: pam_unix(cron:session): session closed for user root
Apr 19 06:45:55 doc4 sudo[5146]: ubuntu : TTY=pts/2 ; PWD=/home/ubuntu ; USER=root ; COMMAND=/bin/journalctl -xe
Apr 19 06:45:55 doc4 sudo[5146]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
sudo service docker status
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-04-19 06:44:55 UTC; 29min ago
Docs: https://docs.docker.com
Process: 5022 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 5022 (code=exited, status=1/FAILURE)
Apr 19 06:44:55 doc4 systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Apr 19 06:44:55 doc4 systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Apr 19 06:44:55 doc4 systemd[1]: Stopped Docker Application Container Engine.
Apr 19 06:44:55 doc4 systemd[1]: docker.service: Start request repeated too quickly.
Apr 19 06:44:55 doc4 systemd[1]: docker.service: Failed with result 'exit-code'.
Apr 19 06:44:55 doc4 systemd[1]: Failed to start Docker Application Container Engine.
回答2件
あなたの回答
tips
プレビュー