Docker Community Forums

Share and learn in the Docker community.

Failed to start Docker Application Container

docker

(Mayukhghosh) #1

Version: Ubuntu-18.04
Docker version-17.12

I am trying to install/run docker[.]io with the following:
sudo apt-get install docker[.]io

I get the following error:

sudo apt-get install docker[.]io
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
aufs-tools btrfs-tools debootstrap rinse zfs-fuse | zfsutils
The following NEW packages will be installed:
docker[.]io
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/30.1 MB of archives.
After this operation, 137 MB of additional disk space will be used.
Preconfiguring packages …
Selecting previously unselected package docker[.]io.
(Reading database … 195428 files and directories currently installed.)
Preparing to unpack …/docker.io_17.12.1-0ubuntu1_amd64.deb …
Unpacking docker[.]io (17.12.1-0ubuntu1) …
Setting up docker[.]io (17.12.1-0ubuntu1) …
Adding group `docker’ (GID 130) …
Done.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
Job for docker.service failed because the control process exited with error code.
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; disabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/docker.service.d
└─overlay.conf, override.conf
Active: activating (auto-restart) (Result: exit-code) since Tue 2018-05-29 17:20:21 IST; 5ms ago

Process: 24702 ExecStart=/usr/bin/dockerd --host=fd:// --add-runtime=nvidia=/usr/bin/nvidia-container-runtime (code=exited, status=1/FAILURE)
Main PID: 24702 (code=exited, status=1/FAILURE)
Processing triggers for ureadahead (0.100.0-20) …
Processing triggers for systemd (237-3ubuntu10) …
Processing triggers for man-db (2.8.3-2) …

Running systemctl status docker.service shows the following:

● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/docker.service.d
└─hosts.conf, overlay.conf, override.conf
Active: failed (Result: exit-code) since Tue 2018-05-29 17:21:20 IST; 11s ago

Process: 26692 ExecStart=/usr/bin/dockerd --host=fd:// --add-runtime=nvidia=/usr/bin/nvidia-contain
Main PID: 26692 (code=exited, status=1/FAILURE)

docker.service: Service hold-off time over
docker.service: Scheduled restart job, res
Stopped Docker Application Container Engin
docker.service: Start request repeated too
docker.service: Failed with result 'exit-c
Failed to start Docker Application Contain

journalctl -xe shows the following:

Unit docker.socket has finished shutting down.
May 29 17:53:17 mayukh-Inspiron-15-7000-Gaming systemd[1]: Stopping Docker Socket for the API.
– Subject: Unit docker.socket has begun shutting down
– Defined-By: systemd
– Support:

– Unit docker.socket has begun shutting down.
May 29 17:53:17 mayukh-Inspiron-15-7000-Gaming systemd[1]: Starting Docker Socket for the API.
– Subject: Unit docker.socket has begun start-up
– Defined-By: systemd
– Support:

– Unit docker.socket has begun starting up.
May 29 17:53:17 mayukh-Inspiron-15-7000-Gaming systemd[1]: Listening on Docker Socket for the API.
– Subject: Unit docker.socket has finished start-up
– Defined-By: systemd
– Support:

– Unit docker.socket has finished starting up.

– The start-up result is RESULT.
May 29 17:53:17 mayukh-Inspiron-15-7000-Gaming systemd[1]: docker.service: Start request repeated too
May 29 17:53:17 mayukh-Inspiron-15-7000-Gaming systemd[1]: docker.service: Failed with result 'exit-c
May 29 17:53:17 mayukh-Inspiron-15-7000-Gaming systemd[1]: Failed to start Docker Application Contain
– Subject: Unit docker.service has failed
– Defined-By: systemd
– Support:

– Unit docker.service has failed.

– The result is RESULT.
May 29 17:53:17 mayukh-Inspiron-15-7000-Gaming systemd[1]: docker.socket: Failed with result 'service
May 29 17:56:59 mayukh-Inspiron-15-7000-Gaming sudo[27706]: mayukh : TTY=pts/0 ; PWD=/home/mayukh ;
May 29 17:56:59 mayukh-Inspiron-15-7000-Gaming sudo[27706]: pam_unix(sudo:session): session opened fo
May 29 17:57:13 mayukh-Inspiron-15-7000-Gaming sudo[27706]: pam_unix(sudo:session): session closed fo
May 29 17:57:23 mayukh-Inspiron-15-7000-Gaming sudo[29568]: mayukh : TTY=pts/0 ; PWD=/home/mayukh ;
May 29 17:57:23 mayukh-Inspiron-15-7000-Gaming sudo[29568]: pam_unix(sudo:session): session opened fo
May 29 17:57:24 mayukh-Inspiron-15-7000-Gaming sudo[29568]: pam_unix(sudo:session): session closed fo
May 29 17:57:54 mayukh-Inspiron-15-7000-Gaming pkexec[29597]: pam_unix(polkit-1:session): session ope
May 29 17:57:54 mayukh-Inspiron-15-7000-Gaming pkexec[29597]: mayukh: Executing command [USER=root] [
May 29 18:00:36 mayukh-Inspiron-15-7000-Gaming systemd[1]: Started Run anacron jobs.
– Subject: Unit anacron.service has finished start-up
– Defined-By: systemd
– Support:

– Unit anacron.service has finished starting up.

– The start-up result is RESULT.