Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.273867631Z" level=debug msg="Calling POST /v1.41/containers/create?name=error-values"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.274157114Z" level=debug msg="form data: {\"AttachStderr\":true,\"AttachStdin\":false,\"AttachStdout\":true,\"Cmd\":[\"toto\"],\"Domainname\":\"\",\"Entrypoint\":null,\"Env\":null,\"HostConfig\":{\"AutoRemove\":false,\"Binds\":null,\"BlkioDeviceReadBps\":null,\"BlkioDeviceReadIOps\":null,\"BlkioDeviceWriteBps\":null,\"BlkioDeviceWriteIOps\":null,\"BlkioWeight\":0,\"BlkioWeightDevice\":[],\"CapAdd\":null,\"CapDrop\":null,\"Cgroup\":\"\",\"CgroupParent\":\"\",\"CgroupnsMode\":\"\",\"ConsoleSize\":[0,0],\"ContainerIDFile\":\"\",\"CpuCount\":0,\"CpuPercent\":0,\"CpuPeriod\":0,\"CpuQuota\":0,\"CpuRealtimePeriod\":0,\"CpuRealtimeRuntime\":0,\"CpuShares\":0,\"CpusetCpus\":\"\",\"CpusetMems\":\"\",\"DeviceCgroupRules\":null,\"DeviceRequests\":null,\"Devices\":[],\"Dns\":[],\"DnsOptions\":[],\"DnsSearch\":[],\"ExtraHosts\":null,\"GroupAdd\":null,\"IOMaximumBandwidth\":0,\"IOMaximumIOps\":0,\"Init\":false,\"IpcMode\":\"\",\"Isolation\":\"\",\"KernelMemory\":0,\"KernelMemoryTCP\":0,\"Links\":null,\"LogConfig\":{\"Config\":{},\"Type\":\"\"},\"MaskedPaths\":null,\"Memory\":0,\"MemoryReservation\":0,\"MemorySwap\":0,\"MemorySwappiness\":-1,\"NanoCpus\":0,\"NetworkMode\":\"default\",\"OomKillDisable\":false,\"OomScoreAdj\":0,\"PidMode\":\"\",\"PidsLimit\":0,\"PortBindings\":{},\"Privileged\":false,\"PublishAllPorts\":false,\"ReadonlyPaths\":null,\"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\":false,\"Platform\":null,\"StdinOnce\":false,\"Tty\":false,\"User\":\"\",\"Volumes\":{},\"WorkingDir\":\"\"}"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.305494679Z" level=debug msg="container mounted via layerStore: &{/var/lib/docker/overlay2/2e361797833cbf24e5eea3a461e5c4a4d71fd7d500de0ea015b20aab0d5796b9/merged 0x557766d41fc0 0x557766d41fc0}" container=3fa72cf5766f4b2ff930a1275e79f7345444309e658fcc79d66af9d92a7e85c5
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.315690937Z" level=debug msg="Calling POST /v1.41/containers/3fa72cf5766f4b2ff930a1275e79f7345444309e658fcc79d66af9d92a7e85c5/attach?stderr=1&stdout=1&stream=1"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.316408815Z" level=debug msg="attach: stdout: begin"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.316654246Z" level=debug msg="attach: stderr: begin"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.317081894Z" level=debug msg="Calling POST /v1.41/containers/3fa72cf5766f4b2ff930a1275e79f7345444309e658fcc79d66af9d92a7e85c5/wait?condition=next-exit"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.317712286Z" level=debug msg="Calling POST /v1.41/containers/3fa72cf5766f4b2ff930a1275e79f7345444309e658fcc79d66af9d92a7e85c5/start"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.323475472Z" level=debug msg="container mounted via layerStore: &{/var/lib/docker/overlay2/2e361797833cbf24e5eea3a461e5c4a4d71fd7d500de0ea015b20aab0d5796b9/merged 0x557766d41fc0 0x557766d41fc0}" container=3fa72cf5766f4b2ff930a1275e79f7345444309e658fcc79d66af9d92a7e85c5
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.324331674Z" level=debug msg="Assigning addresses for endpoint error-values's interface on network bridge"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.324545988Z" level=debug msg="RequestAddress(LocalDefault/172.17.0.0/16, <nil>, map[])"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.324720685Z" level=debug msg="Request address PoolID:172.17.0.0/16 App: ipam/default/data, ID: LocalDefault/172.17.0.0/16, DBIndex: 0x0, Bits: 65536, Unselected: 65533, Sequence: (0xc0000000, 1)->(0x0, 2046)->(0x1, 1)->end Curr:0 Serial:false PrefAddress:<nil> "
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.356571232Z" level=debug msg="Assigning addresses for endpoint error-values's interface on network bridge"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.362347216Z" level=debug msg="Programming external connectivity on endpoint error-values (84abc7c57b8198f1d24593bbc1ed5c8fa852e65de11f99654fa7d2e0181d1b0b)"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.363771185Z" level=debug msg="EnableService 3fa72cf5766f4b2ff930a1275e79f7345444309e658fcc79d66af9d92a7e85c5 START"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.363990235Z" level=debug msg="EnableService 3fa72cf5766f4b2ff930a1275e79f7345444309e658fcc79d66af9d92a7e85c5 DONE"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.370103529Z" level=debug msg="bundle dir created" bundle=/var/run/docker/containerd/3fa72cf5766f4b2ff930a1275e79f7345444309e658fcc79d66af9d92a7e85c5 module=libcontainerd namespace=moby root=/var/lib/docker/overlay2/2e361797833cbf24e5eea3a461e5c4a4d71fd7d500de0ea015b20aab0d5796b9/merged
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.711527553Z" level=debug msg="sandbox set key processing took 116.679106ms for container 3fa72cf5766f4b2ff930a1275e79f7345444309e658fcc79d66af9d92a7e85c5"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.753162733Z" level=error msg="stream copy error: reading from a closed fifo"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.762742364Z" level=error msg="stream copy error: reading from a closed fifo"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.763235103Z" level=debug msg="attach: stdout: end"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.763416931Z" level=debug msg="attach: stderr: end"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.763579829Z" level=debug msg="attach done"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.793700584Z" level=debug msg="Revoking external connectivity on endpoint error-values (84abc7c57b8198f1d24593bbc1ed5c8fa852e65de11f99654fa7d2e0181d1b0b)"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.795500980Z" level=debug msg="DeleteConntrackEntries purged ipv4:0, ipv6:0"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.836064804Z" level=debug msg="Releasing addresses for endpoint error-values's interface on network bridge"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.836109948Z" level=debug msg="ReleaseAddress(LocalDefault/172.17.0.0/16, 172.17.0.2)"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.836152405Z" level=debug msg="Released address PoolID:LocalDefault/172.17.0.0/16, Address:172.17.0.2 Sequence:App: ipam/default/data, ID: LocalDefault/172.17.0.0/16, DBIndex: 0x0, Bits: 65536, Unselected: 65532, Sequence: (0xe0000000, 1)->(0x0, 2046)->(0x1, 1)->end Curr:3"
Jan 11 13:10:48 ubuntu-s-1vcpu-2gb-ams3-01 dockerd[4423]: time="2022-01-11T13:10:48.850775540Z" level=error msg="3fa72cf5766f4b2ff930a1275e79f7345444309e658fcc79d66af9d92a7e85c5 cleanup: failed to delete container from containerd: no such container"
Description
Relates to moby/moby#42942 - we observed a regression / change in behavior in containerd v1.6.0
Steps to reproduce the issue
Preparations
To reproduce; first do a regular install of docker; I tried this on a Ubuntu 20.04 machine (but the issue reproduced running docker-in-docker on Docker Desktop as well);
curl -fsSL https://get.docker.com | shStop the service, and enable debugging on the docker daemon (to get more details);
Pull a
busyboximage;Behavior on containerd v1.4.12 (and v1.5.9)
Start a container with a faulty command that doesn't exist;
docker run --name error-values --init=false busybox toto # docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "toto": executable file not found in $PATH: unknown.Check the container's exit-code:
docker inspect -f '{{.State.ExitCode}}' error-values 127Logs for dockerd and containerd
Details
Details
Remove the container
Install containerd v1.6.0-rc.XX
Stop the docker and containerd services:
Download the latest v1.6.0-rc of containerd and install it (overwriting the existing containerd binaries)
curl -O -fsSL https://github.com/containerd/containerd/releases/download/v1.6.0-beta.5/containerd-1.6.0-beta.5-linux-amd64.tar.gz tar -xvzf containerd-1.6.0-beta.5-linux-amd64.tar.gz cp bin/containerd* /usr/bin/Start the docker service and verify the new version is installed;
Details
Behavior on containerd v1.6.0
Repeat the steps;
Start a container with a faulty command that doesn't exist;
Check the container's exit-code:
docker inspect -f '{{.State.ExitCode}}' error-values 137Notice that the exit code changed to
137Also check that the
137exit code is not due to the container being "OOM-killed" (which usually produces this exit code);docker and containerd logs:
Details
Details
Difference in docker logs between both of the above (after replacing digests/ID's etc);
Files:
with-c8d-1.6.txt
with-c8d-1.4.txt
Describe the results you received and expected
Expected the same exit code for the container
What version of containerd are you using?
containerd github.com/containerd/containerd v1.6.0-beta.5 857b35d.m
Any other relevant information
Show configuration if it is related to CRI plugin.
No response