Skip to content

docker daemon is not working on '1.13.0-rc1' #28368

@twang2218

Description

@twang2218

Description

Failed to start the docker daemon by docker daemon command.

Steps to reproduce the issue:

  1. Create a 1.13-rc1 docker host on Digital Ocean via docker-machine command:
$ docker-machine create -d digitalocean \
    --engine-install-url "https://test.docker.com/" \
    --engine-storage-driver overlay2 \
    d1
  1. ssh into the machine, and you will find you cannot run docker command
$ docker-machine ssh d1
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-47-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

0 packages can be updated.
0 updates are security updates.


root@d1:~# docker info


^C
root@d1:~# docker --version
^C
root@d1:~#

Checking the running process

root@d1:~# ps -ef | grep docker
root       985     1  0 01:51 ?        00:00:00 /usr/bin/docker daemon -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --storage-driver overlay2 --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --tlskey /etc/docker/server-key.pem --label provider=digitalocean

You will find the /usr/bin/docker daemon is used (which is came from docker-machine template).

Then, check the systemd status

root@d1:~# systemctl status docker
● docker.service
   Loaded: loaded (/etc/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2016-11-14 01:51:14 UTC; 2min 49s ago
 Main PID: 985 (docker)
    Tasks: 4
   Memory: 14.1M
      CPU: 25ms
   CGroup: /system.slice/docker.service
           └─985 /usr/bin/docker daemon -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --storage-driver overlay2 --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pe

Nov 14 01:51:14 d1 systemd[1]: Started docker.service.
Nov 14 01:51:14 d1 docker[985]: Command "daemon" is deprecated, and will be removed in Docker 1.16. Please run `dockerd` directly.

There is no further information, which should have more docker daemon boot up info. It seems the docker daemon stuck there.

Edit the /etc/systemd/system/docker.service, replace the docker daemon with dockerd, then reboot the docker service

root@d1:~# systemctl daemon-reload
root@d1:~# systemctl restart docker
root@d1:~# systemctl status docker
● docker.service
   Loaded: loaded (/etc/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2016-11-14 01:58:23 UTC; 3s ago
 Main PID: 1731 (dockerd)
    Tasks: 16
   Memory: 51.4M
      CPU: 363ms
   CGroup: /system.slice/docker.service
           ├─1731 /usr/bin/dockerd -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --storage-driver overlay2 --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --t
           └─1737 docker-containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libcontainerd/containerd -

Nov 14 01:58:25 d1 dockerd[1731]: time="2016-11-14T01:58:25.094362027Z" level=warning msg="Your kernel does not support cgroup rt runtime"
Nov 14 01:58:25 d1 dockerd[1731]: time="2016-11-14T01:58:25.095659953Z" level=info msg="Loading containers: start."
Nov 14 01:58:25 d1 dockerd[1731]: time="2016-11-14T01:58:25.135899718Z" level=info msg="Firewalld running: false"
Nov 14 01:58:25 d1 dockerd[1731]: time="2016-11-14T01:58:25.313196823Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to
Nov 14 01:58:25 d1 dockerd[1731]: time="2016-11-14T01:58:25.356318661Z" level=info msg="Loading containers: done."
Nov 14 01:58:25 d1 dockerd[1731]: time="2016-11-14T01:58:25.376632354Z" level=warning msg="failed to retrieve docker-init version: unknown output format"
Nov 14 01:58:25 d1 dockerd[1731]: time="2016-11-14T01:58:25.377394788Z" level=info msg="Daemon has completed initialization"
Nov 14 01:58:25 d1 dockerd[1731]: time="2016-11-14T01:58:25.377644240Z" level=info msg="Docker daemon" commit=75fd88b graphdriver=overlay2 version=1.13.0-rc1
Nov 14 01:58:25 d1 dockerd[1731]: time="2016-11-14T01:58:25.389155910Z" level=info msg="API listen on /var/run/docker.sock"
Nov 14 01:58:25 d1 dockerd[1731]: time="2016-11-14T01:58:25.389750526Z" level=info msg="API listen on [::]:2376"

This time, we can see the real boot log. And docker command can be used as well.

root@d1:~# docker --version
Docker version 1.13.0-rc1, build 75fd88b

I understand docker daemon is deprecated, but should work until 1.16.

Output of docker version:

Client:
 Version:      1.13.0-rc1
 API version:  1.25
 Go version:   go1.7.3
 Git commit:   75fd88b
 Built:        Fri Nov 11 19:47:07 2016
 OS/Arch:      linux/amd64

Server:
 Version:             1.13.0-rc1
 API version:         1.25
 Minimum API version: 1.12
 Go version:          go1.7.3
 Git commit:          75fd88b
 Built:               Fri Nov 11 19:47:07 2016
 OS/Arch:             linux/amd64
 Experimental:        false

Output of docker info:

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.13.0-rc1
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 8517738ba4b82aff5662c97ca4627e7e4d03b531
runc version: ac031b5bf1cc92239461125f4c1ffb760522bbf2
init version: N/A (expected: v0.13.0)
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.4.0-47-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 488.5 MiB
Name: d1
ID: M7VK:YNAL:VPTV:T5CX:CAS3:W7WX:WT6E:3PVE:GOBD:TQKT:MJLT:5K7C
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Labels:
 provider=digitalocean
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.priority/P1Important: P1 issues are a top priority and a must-have for the next release.status/more-info-neededversion/1.13

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions