Docker Community Forums

Share and learn in the Docker community.

Install docker-ce failed on Ubuntu 16.04.4

docker

(Mengz You) #1

Hi,

I tried to install docker-ce on ubuntu 16.04.4 recently, but always failed:

Setting up docker-ce (17.12.1~ce-0~ubuntu) ...
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; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Mon 2018-03-19 13:52:20 CST; 11ms ago
     Docs: https://docs.docker.com
  Process: 5988 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=205/LIMITS)
 Main PID: 5988 (code=exited, status=205/LIMITS)

Mar 19 13:52:20 swdmes-dev systemd[1]: Failed to start Docker Application Container Engine.
Mar 19 13:52:20 swdmes-dev systemd[1]: docker.service: Unit entered failed state.
Mar 19 13:52:20 swdmes-dev 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 libc-bin (2.23-0ubuntu10) ...
Errors were encountered while processing:
 docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)

and systemctl info:

$ systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: inactive (dead) (Result: exit-code) since Mon 2018-03-19 13:52:21 CST; 4min 32s ago
     Docs: https://docs.docker.com
  Process: 6001 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=205/LIMITS)
 Main PID: 6001 (code=exited, status=205/LIMITS)

Mar 19 13:52:21 swdmes-dev systemd[1]: Failed to start Docker Application Container Engine.
Mar 19 13:52:21 swdmes-dev systemd[1]: docker.service: Unit entered failed state.
Mar 19 13:52:21 swdmes-dev systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 19 13:52:21 swdmes-dev systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Mar 19 13:52:21 swdmes-dev systemd[1]: Stopped Docker Application Container Engine.
Mar 19 13:52:21 swdmes-dev systemd[1]: docker.service: Start request repeated too quickly.
Mar 19 13:52:21 swdmes-dev systemd[1]: Failed to start Docker Application Container Engine.

Can someone give me some help? Thanks!


(Mengz You) #2

From journalctl -xe got below info:

systemd[6764]: docker.service: Failed at step LIMITS spawning /usr/bin/dockerd: Operation not permitted

And if I start via sudo dockerd --debug,there is no errors.