Can't run any conttainer, who can help me?

systemctl status docker -l

● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2016-11-08 19:18:18 CST; 8s ago
Docs: https://docs.docker.com
Main PID: 2640 (dockerd)
Tasks: 17 (limit: 4915)
Memory: 23.1M
CPU: 246ms
CGroup: /system.slice/docker.service
├─2640 /usr/bin/dockerd -H fd:// -s overlay -H unix:///var/run/docker.sock
└─2644 docker-containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim docker-containerd-shim --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker

11月 08 19:18:16 ThinkPAD dockerd[2640]: time=“2016-11-08T19:18:16.811457908+08:00” level=info msg="Loading containers: start."
11月 08 19:18:16 ThinkPAD dockerd[2640]: …time=“2016-11-08T19:18:16.996238230+08:00” level=info msg="Firewalld running: true"
11月 08 19:18:17 ThinkPAD dockerd[2640]: time=“2016-11-08T19:18:17.962219110+08:00” level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can b
11月 08 19:18:18 ThinkPAD dockerd[2640]: time=“2016-11-08T19:18:18.264508993+08:00” level=info msg="Loading containers: done."
11月 08 19:18:18 ThinkPAD dockerd[2640]: time=“2016-11-08T19:18:18.282321372+08:00” level=info msg="Daemon has completed initialization"
11月 08 19:18:18 ThinkPAD dockerd[2640]: time=“2016-11-08T19:18:18.282364243+08:00” level=info msg=“Docker daemon” commit=6b644ec graphdriver=overlay version=1.12.3
11月 08 19:18:18 ThinkPAD dockerd[2640]: time=“2016-11-08T19:18:18.306341983+08:00” level=info msg="API listen on [::]:2377"
11月 08 19:18:18 ThinkPAD systemd[1]: Started Docker Application Container Engine.
11月 08 19:18:18 ThinkPAD dockerd[2640]: time=“2016-11-08T19:18:18.308236487+08:00” level=info msg="API listen on /var/run/docker.sock"
11月 08 19:18:18 ThinkPAD dockerd[2640]: time=“2016-11-08T19:18:18.308590280+08:00” level=info msg="API listen on /var/run/docker.sock"
ThinkPAD ~ # ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 0.0.0.0
ether 02:42:f5:a3:db:e8 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp0s25: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:1f:16:11:6f:6b txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xf2600000-f2620000

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1 (Local Loopback)
RX packets 172 bytes 13776 (13.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 172 bytes 13776 (13.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.187 netmask 255.255.255.0 broadcast 192.168.0.255
ether 00:21:6b:a1:cf:30 txqueuelen 1000 (Ethernet)
RX packets 2547 bytes 147432 (143.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 367 bytes 59911 (58.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

docker info

Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 1
Server Version: 1.12.3
Storage Driver: overlay
Backing Filesystem: xfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: null host bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.8.6-gentoo-YoungMan
Operating System: Gentoo/Linux
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.872 GiB
Name: ThinkPAD
ID: OI6Q:FS3G:PAUY:4OFB:EYE7:2W5W:IEZQ:O4WQ:TNHJ:YDT6:LYT2:A2DN
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
127.0.0.0/8

docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a33a104f5ca1 busybox “/bin/sh” 33 minutes ago Created infallible_allen

docker start a33a104f5ca1

Error response from daemon: containerd: container not started
Error: failed to start containers: a33a104f5ca1


I start with debug mode:

#/usr/bin/dockerd -s overlay -H unix:///var/run/docker.sock -D


INFO[0002] API listen on /var/run/docker.sock
DEBU[0003] libcontainerd: containerd connection state change: READY

then, run a container again…

docker run -itd busybox ‘/bin/bash’

db03a7198735294b2995fbba9fe69a4edefa863f8423b22fa2709e6ae4cbd654
docker: Error response from daemon: containerd: container not started.

I see the debug message have a error:


DEBU[0097] Calling POST /v1.24/containers/create
DEBU[0097] form data: {“AttachStderr”:false,“AttachStdin”:false,“AttachStdout”:false,“Cmd”:["/bin/bash"],“Domainname”:"",“Entrypoint”:null,“Env”:[],“HostConfig”:{“AutoRemove”:false,“Binds”:null,“BlkioDeviceReadBps”:null,“BlkioDeviceReadIOps”:null,“BlkioDeviceWriteBps”:null,“BlkioDeviceWriteIOps”:null,“BlkioWeight”:0,“BlkioWeightDevice”:null,“CapAdd”:null,“CapDrop”:null,“Cgroup”:"",“CgroupParent”:"",“ConsoleSize”:[0,0],“ContainerIDFile”:"",“CpuCount”:0,“CpuPercent”:0,“CpuPeriod”:0,“CpuQuota”:0,“CpuShares”:0,“CpusetCpus”:"",“CpusetMems”:"",“Devices”:[],“DiskQuota”:0,“Dns”:[],“DnsOptions”:[],“DnsSearch”:[],“ExtraHosts”:null,“GroupAdd”:null,“IOMaximumBandwidth”:0,“IOMaximumIOps”:0,“IpcMode”:"",“Isolation”:"",“KernelMemory”:0,“Links”:null,“LogConfig”:{“Config”:{},“Type”:""},“Memory”:0,“MemoryReservation”:0,“MemorySwap”:0,“MemorySwappiness”:-1,“NetworkMode”:“default”,“OomKillDisable”:false,“OomScoreAdj”:0,“PidMode”:"",“PidsLimit”:0,“PortBindings”:{},“Privileged”:false,“PublishAllPorts”:false,“ReadonlyRootfs”:false,“RestartPolicy”:{“MaximumRetryCount”:0,“Name”:“no”},“SecurityOpt”:null,“ShmSize”:0,“UTSMode”:"",“Ulimits”:null,“UsernsMode”:"",“VolumeDriver”:"",“VolumesFrom”:null},“Hostname”:"",“Image”:“busybox”,“Labels”:{},“NetworkingConfig”:{“EndpointsConfig”:{}},“OnBuild”:null,“OpenStdin”:true,“StdinOnce”:false,“Tty”:true,“User”:"",“Volumes”:{},“WorkingDir”:""}
DEBU[0097] container mounted via layerStore: /var/lib/docker/overlay/5b09be0fc51526e63eb1f0763e38db6d158f6a5237511c1a8107e2218eccf0d6/merged
DEBU[0098] Calling POST /v1.24/containers/db03a7198735294b2995fbba9fe69a4edefa863f8423b22fa2709e6ae4cbd654/start
DEBU[0098] container mounted via layerStore: /var/lib/docker/overlay/5b09be0fc51526e63eb1f0763e38db6d158f6a5237511c1a8107e2218eccf0d6/merged
DEBU[0098] Assigning addresses for endpoint awesome_darwin’s interface on network bridge
DEBU[0098] RequestAddress(LocalDefault/172.17.0.0/16, , map[])
DEBU[0098] Assigning addresses for endpoint awesome_darwin’s interface on network bridge
DEBU[0098] Programming external connectivity on endpoint awesome_darwin (4c34a31dc5053d318d48d3e7f284b6ae7dd6e9bc637277d1360b61664b56db30)
ERRO[0098] containerd: start container error=containerd: container not started id=db03a7198735294b2995fbba9fe69a4edefa863f8423b22fa2709e6ae4cbd654
DEBU[0098] docker-runc [delete db03a7198735294b2995fbba9fe69a4edefa863f8423b22fa2709e6ae4cbd654]: "container db03a7198735294b2995fbba9fe69a4edefa863f8423b22fa2709e6ae4cbd654 is not exist\n"
ERRO[0098] Create container failed with error: containerd: container not started
DEBU[0098] Revoking external connectivity on endpoint awesome_darwin (4c34a31dc5053d318d48d3e7f284b6ae7dd6e9bc637277d1360b61664b56db30)
DEBU[0098] Releasing addresses for endpoint awesome_darwin’s interface on network bridge
DEBU[0098] ReleaseAddress(LocalDefault/172.17.0.0/16, 172.17.0.2)
ERRO[0098] Handler for POST /v1.24/containers/db03a7198735294b2995fbba9fe69a4edefa863f8423b22fa2709e6ae4cbd654/start returned error: containerd: container not started


any one can help me ? :joy:

2 Likes

I configured an embedded version of Linux using buildroot. I included docker in the build. I am receiving this exact same error when trying to start or run a container.

When I boot the Linux image through a USB, there are no issues. However, as soon as I run the image using VirtualBox, I can no longer start containers. I am not sure what the issue really is especially with a not so useful error message:

“containerd: start container error=containerd: container not started”

docker version:

Client:
Version: v1.12.6
API version: 1.24
Go version: go1.7.2
Git commit: unknown
Built: Mon Feb 6 10:39:20 EST 2017
OS/Arch: linux/amd64

Server:
Version: v1.12.6
API version: 1.24
Go version: go1.7.2
Git commit: unknown
Built: Mon Feb 6 10:39:20 EST 2017
OS/Arch: linux/amd64

docker info

Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 1
Server Version: v1.12.6
Storage Driver: vfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: overlay null host bridge
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options:
Kernel Version: 4.8.11
Operating System: Buildroot 2016.11.1
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.954 GiB
Name: buildroot
ID: 2HBE:J2XO:PJOO:CVUO:UXJK:ZONF:NTRL:K7HQ:X7TY:PVOR:X6LZ:G7D7
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 13
Goroutines: 23
System Time: 2017-02-06T16:06:40.487823232Z
EventsListeners: 0
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Insecure Registries:
127.0.0.0/8

docker start

$ docker start determined_borg
DEBU[0869] Calling POST /v1.24/containers/determined_borg/start
DEBU[0869] container mounted via layerStore: /var/lib/docker/vfs/dir/56e221cb237895a60dc1dd56fe99bf43e8829f589ee2130915591e11faaad9e6
DEBU[0869] Assigning addresses for endpoint determined_borg’s interface on network bridge
DEBU[0869] RequestAddress(LocalDefault/172.17.0.0/16, , map)
DEBU[0869] Assigning addresses for endpoint determined_borg’s interface on network bridge
INFO[0869] No non-localhost DNS nameservers are left in resolv.conf. Using default external servers : [nameserver 8.8.8.8 nameserver 8.8.4.4]
INFO[0869] IPv6 enabled; Adding default IPv6 external servers : [nameserver 2001:4860:4860::8888 nameserver 2001:4860:4860::8844]
DEBU[0869] Programming external connectivity on endpoint determined_borg (63e59b35a4ec9feeb9968e375f3a1a3d7c09869b8843c2fe020b886e63245421)
DEBU[0869] sandbox set key processing took 39.766563ms for container b941f63a416a400705bbe926bdf53f7d98e2f90cfbc8143e9d96e8ca87b7c439
ERRO[0869] containerd: start container error=containerd: container not started id=b941f63a416a400705bbe926bdf53f7d98e2f90cfbc8143e9d96e8ca87b7c439
ERRO[0869] Create container failed with error: containerd: container not started
DEBU[0869] Revoking external connectivity on endpoint determined_borg (63e59b35a4ec9feeb9968e375f3a1a3d7c09869b8843c2fe020b886e63245421)
DEBU[0869] docker-runc [delete b941f63a416a400705bbe926bdf53f7d98e2f90cfbc8143e9d96e8ca87b7c439]: “container b941f63a416a400705bbe926bdf53f7d98e2f90cfbc8143e9d96e8ca87b7c439 is not exist\n”
DEBU[0869] Releasing addresses for endpoint determined_borg’s interface on network bridge
DEBU[0869] ReleaseAddress(LocalDefault/172.17.0.0/16, 172.17.0.2)
ERRO[0869] Handler for POST /v1.24/containers/determined_borg/start returned error: containerd: container not started
Error response from daemon: containerd: container not started
Error: failed to start containers: determined_borg