Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No status provided on response: unknown #813

Closed
1 of 3 tasks
vietthang207 opened this issue Oct 10, 2019 · 83 comments
Closed
1 of 3 tasks

No status provided on response: unknown #813

vietthang207 opened this issue Oct 10, 2019 · 83 comments

Comments

@vietthang207
Copy link

  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

Expected behavior

Actual behavior

docker: Error response from daemon: no status provided on response: unknown.
ERRO[0000] error waiting for container: context canceled

Steps to reproduce the behavior

sudo docker run --rm hello-world

Output of docker version:

Client: Docker Engine - Community
 Version:           19.03.3
 API version:       1.40
 Go version:        go1.12.10
 Git commit:        a872fc2
 Built:             Tue Oct  8 00:59:54 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.3
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.10
  Git commit:       a872fc2
  Built:            Tue Oct  8 00:58:28 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.5
  GitCommit:        bb71b10fd8f58240ca47fbb579b9d1028eea7c84
 runc:
  Version:          1.0.0-rc8+dev
  GitCommit:        3e425f80a8c931f88e6d94a8c831b9d5aa481657
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Output of docker info:

Client:
 Debug Mode: false

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 2
 Server Version: 19.03.3
 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 ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
 runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
 init version: fec3683
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 4.15.0-1046-gcp
 Operating System: Ubuntu 16.04.6 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 3.853GiB
 Name: dev-core
 ID: ZVTZ:2OZX:VHFQ:OFY7:R7NR:RN32:SO2L:QHAX:5H5R:27FJ:5L2B:C5Z7
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No swap limit support

Additional environment details (AWS, VirtualBox, physical, etc.)
AWS

Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
@vietthang207
Copy link
Author

vietthang207 commented Oct 10, 2019

I’ve managed to fix this by reinstalling another version of runc and then reinstalling docker-ce

apt-get install runc=1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4
apt-get install docker-ce

My docker version changed to:

Client: Docker Engine - Community
 Version:           19.03.3
 API version:       1.40
 Go version:        go1.12.10
 Git commit:        a872fc2
 Built:             Tue Oct  8 00:59:54 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.3
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.10
  Git commit:       a872fc2
  Built:            Tue Oct  8 00:58:28 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.10
  GitCommit:        b34a5c8af56e510852c35414db4c1f4fa6172339
 runc:
  Version:          1.0.0-rc8+dev
  GitCommit:        3e425f80a8c931f88e6d94a8c831b9d5aa481657
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

I think only the containerd version is different.

@pmontrasio
Copy link

pmontrasio commented Oct 10, 2019

Same error here after this morning automatic upgrade of Ubuntu

$ dpkg -l "*docker*"|grep ii
ii  docker-ce                  5:19.03.3~3-0~ubuntu-xenial amd64        Docker: the open-source application container engine
ii  docker-ce-cli              5:19.03.3~3-0~ubuntu-xenial amd64        Docker CLI: the open-source application container engine

Any docker run command fails

$ docker run -it --rm jekyll/jekyll jekyll serve --watch --incremental
docker: Error response from daemon: no status provided on response: unknown.

docker ps works. Today's log

$ journalctl -u docker|grep "Oct 10"
Oct 10 09:08:03 mylaptop systemd[1]: Stopping Docker Application Container Engine...
Oct 10 09:08:03 mylaptop dockerd[7640]: time="2019-10-10T09:08:03.826250545+02:00" level=info msg="Processing signal 'terminated'"
Oct 10 09:08:13 mylaptop dockerd[7640]: time="2019-10-10T09:08:13.957022897+02:00" level=info msg="Container f2ad4fc9189efb8945c5cc06e67ac4325f1285b2afe66fa50a87689e54587ea1 failed to exit within 10 seconds of signal 15 - using the force"
Oct 10 09:08:14 mylaptop dockerd[7640]: time="2019-10-10T09:08:14.165366954+02:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Oct 10 09:08:14 mylaptop dockerd[7640]: time="2019-10-10T09:08:14.357962940+02:00" level=warning msg="f2ad4fc9189efb8945c5cc06e67ac4325f1285b2afe66fa50a87689e54587ea1 cleanup: failed to unmount IPC: umount /var/lib/docker/containers/f2ad4fc9189efb8945c5cc06e67ac4325f1285b2afe66fa50a87689e54587ea1/mounts/shm, flags: 0x2: no such file or directory"
Oct 10 09:08:14 mylaptop dockerd[7640]: time="2019-10-10T09:08:14.511527912+02:00" level=warning error="no such file or directory" method="Cleanup()" storage-driver=aufs
Oct 10 09:08:14 mylaptop dockerd[7640]: time="2019-10-10T09:08:14.512692977+02:00" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
Oct 10 09:08:14 mylaptop dockerd[7640]: time="2019-10-10T09:08:14.513065354+02:00" level=info msg="Daemon shutdown complete"
Oct 10 09:08:14 mylaptop dockerd[7640]: time="2019-10-10T09:08:14.513093396+02:00" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby
Oct 10 09:08:14 mylaptop systemd[1]: Stopped Docker Application Container Engine.
Oct 10 09:09:22 mylaptop systemd[1]: Starting Docker Application Container Engine...
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.521493852+02:00" level=info msg="Starting up"
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.522815400+02:00" level=warning msg="failed to rename /var/lib/docker/tmp for background deletion: rename /var/lib/docker/tmp /var/lib/docker/tmp-old: file exists. Deleting synchronously"
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.523881840+02:00" level=info msg="parsed scheme: \"unix\"" module=grpc
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.523901967+02:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.523923782+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0  <nil>}] <nil>}" module=grpc
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.523940359+02:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.543561205+02:00" level=info msg="parsed scheme: \"unix\"" module=grpc
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.543595978+02:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.543625744+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0  <nil>}] <nil>}" module=grpc
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.543651558+02:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.577433689+02:00" level=info msg="[graphdriver] using prior storage driver: aufs"
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.577467270+02:00" level=warning msg="[graphdriver] WARNING: the aufs storage-driver is deprecated, and will be removed in a future release"
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.927265195+02:00" level=warning msg="Your kernel does not support swap memory limit"
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.927296673+02:00" level=warning msg="Your kernel does not support cgroup rt period"
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.927305108+02:00" level=warning msg="Your kernel does not support cgroup rt runtime"
Oct 10 09:09:22 mylaptop dockerd[10112]: time="2019-10-10T09:09:22.927523924+02:00" level=info msg="Loading containers: start."
Oct 10 09:09:23 mylaptop dockerd[10112]: time="2019-10-10T09:09:23.131504529+02:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
Oct 10 09:09:23 mylaptop dockerd[10112]: time="2019-10-10T09:09:23.165222672+02:00" level=info msg="Loading containers: done."
Oct 10 09:09:23 mylaptop dockerd[10112]: time="2019-10-10T09:09:23.351703467+02:00" level=info msg="Docker daemon" commit=a872fc2 graphdriver(s)=aufs version=19.03.3
Oct 10 09:09:23 mylaptop dockerd[10112]: time="2019-10-10T09:09:23.351960108+02:00" level=info msg="Daemon has completed initialization"
Oct 10 09:09:23 mylaptop dockerd[10112]: time="2019-10-10T09:09:23.393504949+02:00" level=info msg="API listen on /var/run/docker.sock"
Oct 10 09:09:23 mylaptop systemd[1]: Started Docker Application Container Engine.
Oct 10 10:37:32 mylaptop dockerd[10112]: time="2019-10-10T10:37:32.443359122+02:00" level=error msg="stream copy error: read /proc/self/fd/23: file already closed"
Oct 10 10:37:32 mylaptop dockerd[10112]: time="2019-10-10T10:37:32.657393693+02:00" level=warning msg="28ab96f1acfcca5010b6dc479ed4d34b53486383b368409c5a92c5710c144b7c cleanup: failed to unmount IPC: umount /var/lib/docker/containers/28ab96f1acfcca5010b6dc479ed4d34b53486383b368409c5a92c5710c144b7c/mounts/shm, flags: 0x2: no such file or directory"
Oct 10 10:37:32 mylaptop dockerd[10112]: time="2019-10-10T10:37:32.688689557+02:00" level=error msg="28ab96f1acfcca5010b6dc479ed4d34b53486383b368409c5a92c5710c144b7c cleanup: failed to delete container from containerd: no such container"
Oct 10 10:37:32 mylaptop dockerd[10112]: time="2019-10-10T10:37:32.709273445+02:00" level=error msg="Handler for POST /v1.40/containers/28ab96f1acfcca5010b6dc479ed4d34b53486383b368409c5a92c5710c144b7c/start returned error: no status provided on response: unknown"
Oct 10 10:38:03 mylaptop dockerd[10112]: time="2019-10-10T10:38:03.801997468+02:00" level=error msg="stream copy error: read /proc/self/fd/23: file already closed"
Oct 10 10:38:04 mylaptop dockerd[10112]: time="2019-10-10T10:38:04.059492370+02:00" level=warning msg="20f6f139d97263d46f8db5321243062b1250d35d21860b91cd2c309fbffefe1d cleanup: failed to unmount IPC: umount /var/lib/docker/containers/20f6f139d97263d46f8db5321243062b1250d35d21860b91cd2c309fbffefe1d/mounts/shm, flags: 0x2: no such file or directory"
Oct 10 10:38:04 mylaptop dockerd[10112]: time="2019-10-10T10:38:04.088204241+02:00" level=error msg="20f6f139d97263d46f8db5321243062b1250d35d21860b91cd2c309fbffefe1d cleanup: failed to delete container from containerd: no such container"
Oct 10 10:38:04 mylaptop dockerd[10112]: time="2019-10-10T10:38:04.108013831+02:00" level=error msg="Handler for POST /v1.40/containers/20f6f139d97263d46f8db5321243062b1250d35d21860b91cd2c309fbffefe1d/start returned error: no status provided on response: unknown"
Oct 10 10:40:50 mylaptop systemd[1]: Stopping Docker Application Container Engine...
Oct 10 10:40:50 mylaptop dockerd[10112]: time="2019-10-10T10:40:50.711698685+02:00" level=info msg="Processing signal 'terminated'"
Oct 10 10:40:50 mylaptop dockerd[10112]: time="2019-10-10T10:40:50.742151602+02:00" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
Oct 10 10:40:50 mylaptop dockerd[10112]: time="2019-10-10T10:40:50.742602840+02:00" level=info msg="Daemon shutdown complete"
Oct 10 10:40:50 mylaptop systemd[1]: Stopped Docker Application Container Engine.
Oct 10 10:40:50 mylaptop systemd[1]: Starting Docker Application Container Engine...
Oct 10 10:40:50 mylaptop dockerd[25515]: time="2019-10-10T10:40:50.810399831+02:00" level=info msg="Starting up"
Oct 10 10:40:50 mylaptop dockerd[25515]: time="2019-10-10T10:40:50.812154741+02:00" level=warning msg="failed to rename /var/lib/docker/tmp for background deletion: rename /var/lib/docker/tmp /var/lib/docker/tmp-old: file exists. Deleting synchronously"
Oct 10 10:40:50 mylaptop dockerd[25515]: time="2019-10-10T10:40:50.817780196+02:00" level=info msg="parsed scheme: \"unix\"" module=grpc
Oct 10 10:40:50 mylaptop dockerd[25515]: time="2019-10-10T10:40:50.818213725+02:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
Oct 10 10:40:50 mylaptop dockerd[25515]: time="2019-10-10T10:40:50.818280493+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0  <nil>}] <nil>}" module=grpc
Oct 10 10:40:50 mylaptop dockerd[25515]: time="2019-10-10T10:40:50.818313498+02:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Oct 10 10:40:50 mylaptop dockerd[25515]: time="2019-10-10T10:40:50.821523707+02:00" level=info msg="parsed scheme: \"unix\"" module=grpc
Oct 10 10:40:50 mylaptop dockerd[25515]: time="2019-10-10T10:40:50.821568357+02:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
Oct 10 10:40:50 mylaptop dockerd[25515]: time="2019-10-10T10:40:50.821598794+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0  <nil>}] <nil>}" module=grpc
Oct 10 10:40:50 mylaptop dockerd[25515]: time="2019-10-10T10:40:50.821615705+02:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Oct 10 10:40:50 mylaptop dockerd[25515]: time="2019-10-10T10:40:50.862279985+02:00" level=info msg="[graphdriver] using prior storage driver: aufs"
Oct 10 10:40:50 mylaptop dockerd[25515]: time="2019-10-10T10:40:50.862318484+02:00" level=warning msg="[graphdriver] WARNING: the aufs storage-driver is deprecated, and will be removed in a future release"
Oct 10 10:40:51 mylaptop dockerd[25515]: time="2019-10-10T10:40:51.229617689+02:00" level=warning msg="Your kernel does not support swap memory limit"
Oct 10 10:40:51 mylaptop dockerd[25515]: time="2019-10-10T10:40:51.229664262+02:00" level=warning msg="Your kernel does not support cgroup rt period"
Oct 10 10:40:51 mylaptop dockerd[25515]: time="2019-10-10T10:40:51.229677979+02:00" level=warning msg="Your kernel does not support cgroup rt runtime"
Oct 10 10:40:51 mylaptop dockerd[25515]: time="2019-10-10T10:40:51.229900898+02:00" level=info msg="Loading containers: start."
Oct 10 10:40:51 mylaptop dockerd[25515]: time="2019-10-10T10:40:51.431784072+02:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
Oct 10 10:40:51 mylaptop dockerd[25515]: time="2019-10-10T10:40:51.591615954+02:00" level=info msg="Loading containers: done."
Oct 10 10:40:51 mylaptop dockerd[25515]: time="2019-10-10T10:40:51.654749922+02:00" level=info msg="Docker daemon" commit=a872fc2 graphdriver(s)=aufs version=19.03.3
Oct 10 10:40:51 mylaptop dockerd[25515]: time="2019-10-10T10:40:51.654847498+02:00" level=info msg="Daemon has completed initialization"
Oct 10 10:40:51 mylaptop dockerd[25515]: time="2019-10-10T10:40:51.690258074+02:00" level=info msg="API listen on /var/run/docker.sock"
Oct 10 10:40:51 mylaptop systemd[1]: Started Docker Application Container Engine.
Oct 10 10:40:58 mylaptop dockerd[25515]: time="2019-10-10T10:40:58.938480091+02:00" level=error msg="stream copy error: read /proc/self/fd/23: file already closed"
Oct 10 10:40:59 mylaptop dockerd[25515]: time="2019-10-10T10:40:59.161372218+02:00" level=warning msg="aa112274a7f5e96781014eedda25dd329f5458fe14329118df6a909ed87953cc cleanup: failed to unmount IPC: umount /var/lib/docker/containers/aa112274a7f5e96781014eedda25dd329f5458fe14329118df6a909ed87953cc/mounts/shm, flags: 0x2: no such file or directory"
Oct 10 10:40:59 mylaptop dockerd[25515]: time="2019-10-10T10:40:59.176384407+02:00" level=error msg="aa112274a7f5e96781014eedda25dd329f5458fe14329118df6a909ed87953cc cleanup: failed to delete container from containerd: no such container"
Oct 10 10:40:59 mylaptop dockerd[25515]: time="2019-10-10T10:40:59.190458037+02:00" level=error msg="Handler for POST /v1.40/containers/aa112274a7f5e96781014eedda25dd329f5458fe14329118df6a909ed87953cc/start returned error: no status provided on response: unknown"
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.6 LTS
Release:	16.04
Codename:	xenial

$ uname -a
Linux mylaptop 4.15.0-62-generic #69~16.04.1-Ubuntu SMP Fri Sep 6 02:43:35 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

@edorivai
Copy link

@vietthang207 thanks for the quickfix. To clarify a bit, I had to:

  1. Add a deb repo:
sudo add-apt-repository 'deb http://security.ubuntu.com/ubuntu xenial-security main universe'
  1. Install runc (note the ~s, github messed them up in @vietthang207 's original post):
sudo apt-get install runc=1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4
  1. Installing runc causes docker-ce to be removed, hence reinstall it:
sudo apt-get install docker-ce

@vietthang207
Copy link
Author

  1. Install runc (note the ~s, github messed them up in @vietthang207 's original post):

I've fixed this, thanks.

@pmontrasio
Copy link

It worked for me too, thanks.

This means that docker is broken on every autoupdating Ubuntu 16.04 server and desktop today, unless this workaround is applied?

@gglentini
Copy link

The fix doesn't work for me on Ubuntu 18.04.

I see from apt-get logs, the re-installation of docker-ce removes again runs and installs again containerd.io.
So when trying again docker run commands, it fails again.

Does anyone know if there's a precise version (as the one proposed by @vietthang207 for 16.04) of runc to be installed on 18.04?

@pmontrasio
Copy link

pmontrasio commented Oct 10, 2019

Run this command to list the available versions of runc

$ apt-cache madison runc

The output I got on a 18.04 server is

runc | 1.0.0~rc7+git20190403.029124da-0ubuntu1~18.04.2 | http://nova.clouds.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
runc | 1.0.0~rc7+git20190403.029124da-0ubuntu1~18.04.2 | http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
runc | 1.0.0~rc4+dfsg1-6 | http://nova.clouds.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
runc | 1.0.0~rc4+dfsg1-6 | http://nova.clouds.archive.ubuntu.com/ubuntu bionic/universe Sources
runc | 1.0.0~rc7+git20190403.029124da-0ubuntu1~18.04.2 | http://nova.clouds.archive.ubuntu.com/ubuntu bionic-updates/universe Sources
runc | 1.0.0~rc7+git20190403.029124da-0ubuntu1~18.04.2 | http://security.ubuntu.com/ubuntu bionic-security/universe Sources

One of them should be the right one for you. Apparently that server didn't have any problem today.

@pypt
Copy link

pypt commented Oct 10, 2019

What worked for me on 16.04 was installing older docker-ce + containerd.io combination:

# apt-cache madison docker-ce | grep 18.09.2
 docker-ce | 5:18.09.2~3-0~ubuntu-xenial | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

# apt-cache madison containerd.io | grep 1.2.6
containerd.io |    1.2.6-3 | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

# apt-get install docker-ce=5:18.09.2~3-0~ubuntu-xenial docker-ce-cli=5:18.09.2~3-0~ubuntu-xenial containerd.io=1.2.6-3
<...>

# $ docker run hello-world
<...>
Hello from Docker!
<...>

(You might wanna go with newer version combinations if they work for you.)

Note to self: in the future, pin not only docker-ce's version but also its container engine too:

# apt-mark hold docker-ce
# apt-mark hold docker-ce-cli
# apt-mark hold containerd.io

Disabling unattended upgrades is not the worst idea either.

@petiepooo
Copy link

Installing the prior version of containerd using:

sudo apt-get install containerd.io=1.2.6-3

worked for me. No need to reinstall docker-ce that way.

@gitathrun
Copy link

gitathrun commented Oct 11, 2019

@ventsip I think it is just solved part of some problem, with your re-installation, my docker-cli runs ok now, but it broken the nvidia-docker cmd, now if I run nvidia-docker, it returns

sudo: nvidia-docker: command not found

Any suggestions?

UPDATE:

I think it is the upgrade with nvidia-docker-cli as well, if I changed the cmdline from

sudo nvidia-docker run xxxxx

to

sudo docker run --gpus all xxxxx

It works as expected.

@romainbou
Copy link

romainbou commented Oct 11, 2019

I had this error today while building a container.

Building xxx
Step 1/10 : FROM node:alpine
...
Step 5/10 : RUN apk add git
 ---> Running in 1a18966ab87a
ERROR: Service 'xxx' failed to build: no status provided on response: unknown

It was just after upgrading my system on Manjaro (Arch). I probably got a docker update.
My current version is Docker version 19.03.3-ce, build a872fc2f86

Restarting the docker service fixed the issue:

sudo systemctl restart docker

@matpil
Copy link

matpil commented Oct 12, 2019

Installing the prior version of containerd using:

sudo apt-get install containerd.io=1.2.6-3

worked for me. No need to reinstall docker-ce that way.

it works also for me. No docker reinstall needed.
thanks

@mprasil
Copy link

mprasil commented Oct 12, 2019

For me just restarting the docker service solved the problem.

@matpil
Copy link

matpil commented Oct 12, 2019

For me just restarting the docker service solved the problem.

lucky guy :)
I'try to restart docker.service (and also reload daemon) but nothing

@abu-yusuf-dev
Copy link

#813 (comment) This helped me indeed :)

@antoniou79
Copy link

I also got this issue, after latest update on Ubuntu 16.04.6 LTS
The fix that worked for me was downgrading the containerd.io and restarting docker service:
sudo apt-get install containerd.io=1.2.6-3
sudo systemctl restart docker

@kmjones1979
Copy link

Installing the prior version of containerd using:

sudo apt-get install containerd.io=1.2.6-3

worked for me. No need to reinstall docker-ce that way.

Thanks for this! Fixed it for me. :)

@YxSkywalker
Copy link

YxSkywalker commented Oct 14, 2019

sudo apt-get install containerd.io=1.2.6-3

also work for me. After update the containerd, need to restart the docker daemon.
systemctl restart docker

extra info:
I face this issue when used docker-compose bring up the container. after update the containerd and restart, I have also remove the previous bring up failure containers, and docker-compose up -d again to get rid of " b'failed to listen to abstract unix socket "/containerd-shim/moby.../shim.sock: bind: address already in use: unknown" error

@ventsip
Copy link

ventsip commented Oct 14, 2019 via email

@besnik
Copy link

besnik commented Oct 14, 2019

As per petiepooo comment downgrading to prior version of containerd.io and restarting docker service worked for me (Ubuntu 16.04.6 LTS)

sudo apt-get install containerd.io=1.2.6-3
sudo systemctl restart docker

@gitathrun
Copy link

@ventsip I think it is just solved part of some problem, with your re-installation, my docker-cli runs ok now, but it broken the nvidia-docker cmd, now if I run nvidia-docker, it returns

sudo: nvidia-docker: command not found

Any suggestions?

UPDATE:

I think it is the upgrade with nvidia-docker-cli as well, if I changed the cmdline from

sudo nvidia-docker run xxxxx

to

sudo docker run --gpus all xxxxx

It works as expected.

@ventsip Sorry, I think I got it wrong, I wish to @ vietthang207 , GitHub suggested you but I forgot to check.

@ericblade
Copy link

ericblade commented Oct 14, 2019

... i just followed the instructions here https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04

which updated my docker to 19.03.03 from 19.03.01 or some such, and now it's working at least for hello-world, and my docker containers are starting to build, without failing mysteriously after the FROM command.

@fauno
Copy link

fauno commented Oct 14, 2019

on archlinux, with docker 19.03.2 downgrading containerd from 1.3.0 to 1.2.8 worked again

@aMozejko1
Copy link

the following just worked for me after upgrading to docker 19.03.3. ub18.04

apt-get install runc=1.0.0~rc7+git20190403.029124da-0ubuntu1~18.04.2
apt-get install docker-ce

@MilindaLaknath
Copy link

on archlinux, with docker 19.03.2 downgrading containerd from 1.3.0 to 1.2.8 worked again

How you did it? I faced the same issue in Manjaro.

@MilindaLaknath
Copy link

on archlinux, with docker 19.03.2 downgrading containerd from 1.3.0 to 1.2.8 worked again

Thanks. It worked.
sudo pacman -U /var/cache/pacman/pkg/containerd-1.2.8-1-x86_64.pkg.tar.xz
and Restarted the machine.

@peter279k
Copy link

I also have the same issue on my Ubuntu 16.04.

After I reinstall the docker-ce package and reboot my machine, it's worked successfully now :).

@ericblade
Copy link

@thaJeztah - It's not just Ubuntu. I'm experiencing this on a fresh install of Manjaro 18.1.1 and I have rebooted several times. Using the hello-world example from @andrewhsu

docker run --rm hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pull complete 
Digest: sha256:c3b4ada4687bbaa170745b3e4dd8ac3f194ca95b2d0518b417fb47e5879d9b5f
Status: Downloaded newer image for hello-world:latest
docker: Error response from daemon: no status provided on response: unknown.

FWIW, I discovered it when I went to build a container -- after it downloaded the base image for the container, it would hit the first RUN command, and then die with the same error. I don't normally use docker on the machine for much of anything, but I had used it last week to run a test of something, and then went I went back to it the other day, was when this started showing up.

@sternam
Copy link

sternam commented Oct 18, 2019

Installing the prior version of containerd using:

sudo apt-get install containerd.io=1.2.6-3

worked for me. No need to reinstall docker-ce that way.

This did the trick for me on Ubuntu 16.04, but I also had to run sudo systemctl restart docker after downgrading containerd.io to 1.2.6-3

@adawalli
Copy link

Hello All - I think the issue is confirmed at this point. Can I request that we stop providing a solution for each and every thing that "worked for me". Don't get me wrong, these were helpful, but at this point, I don't think this is helping the devs triage the issue. Thanks!

@cleeland
Copy link

cleeland commented Oct 18, 2019 via email

@robbyoconnor
Copy link

I also got bit by this, on a Friday afternoon, while at an event...note to self: don't do this.

@alexanderkjeldaas
Copy link

I understand this is a bug in Ubuntu packaging, but can someone explain why, 8 days after this was reported, upgrading an Ubuntu machine still will break?
Shouldn't something have been pulled/blocked on the Ubuntu side to avoid millions of machines getting stuck?

@pgassmann
Copy link

@alexanderkjeldaas the Package is for Ubuntu no from Ubuntu, docker-ce is an additional repository you added to your system. The responsibility for that repo is at Docker Inc. And as it is only the community edition it looks like it is not treated with highest priority.

@thaJeztah
Copy link
Member

And as it is only the community edition it looks like it is not treated with highest priority.

The team has been working on this issue for the last 3 days; even though the problem was located, finding the right solution turned out to have some issues (fixing the problem caused other up/downgrade scenarios to be broken), so all of those had to be re-verified.

A fix was found, and the containerd.io-1.2.10-3 package, which is available now, should have that fix; https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/

@alexanderkjeldaas were you still running into this issue when upgrading from containerd.io 1.2.5/1.2.6 to 1.2.10-3 ?

@thaJeztah
Copy link
Member

Note that a workaround for those that got stuck after upgrading to the 1.2.10-2 package on Ubuntu 16.04 is to do a systemctl restart containerd once (not ideal, but doesn't require downgrading packages)

@pgassmann
Copy link

Today, docker service was shut down after unattended-upgrades updated docker-ce, docker-ce-cli and containerd.io

It looks like now the containerd.io package restarts its service, but introduces another (even more serious) issue that leaves the docker service stopped.

/var/log/apt/history.log:

Start-Date: 2019-10-20  06:20:51
Commandline: /usr/bin/unattended-upgrade
Upgrade: docker-ce:amd64 (5:19.03.3~3-0~ubuntu-xenial, 5:19.03.4~3-0~ubuntu-xenial)
End-Date: 2019-10-20  06:20:58

Start-Date: 2019-10-20  06:20:59
Commandline: /usr/bin/unattended-upgrade
Upgrade: docker-ce-cli:amd64 (5:19.03.3~3-0~ubuntu-xenial, 5:19.03.4~3-0~ubuntu-xenial)
End-Date: 2019-10-20  06:21:03

Start-Date: 2019-10-20  06:21:04
Commandline: /usr/bin/unattended-upgrade
Upgrade: containerd.io:amd64 (1.2.10-2, 1.2.10-3)
End-Date: 2019-10-20  06:21:07

journalctl -xe -u docker.service:

-- Unit docker.service has finished starting up.
-- 
-- The start-up result is done.
Oct 20 06:21:04 bulgaria systemd[1]: Stopping Docker Application Container Engine...
-- Subject: Unit docker.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.service has begun shutting down.
Oct 20 06:21:04 bulgaria dockerd[23158]: time="2019-10-20T06:21:04.354444125+02:00" level=info msg="Processing signal 'terminated'"
Oct 20 06:21:04 bulgaria dockerd[23158]: time="2019-10-20T06:21:04.483921355+02:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Oct 20 06:21:04 bulgaria dockerd[23158]: time="2019-10-20T06:21:04.503186152+02:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Oct 20 06:21:04 bulgaria dockerd[23158]: time="2019-10-20T06:21:04.503229023+02:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Oct 20 06:21:04 bulgaria dockerd[23158]: time="2019-10-20T06:21:04.529917134+02:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Oct 20 06:21:04 bulgaria dockerd[23158]: time="2019-10-20T06:21:04.565525413+02:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Oct 20 06:21:04 bulgaria dockerd[23158]: time="2019-10-20T06:21:04.772125723+02:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Oct 20 06:21:04 bulgaria dockerd[23158]: time="2019-10-20T06:21:04.776243872+02:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Oct 20 06:21:05 bulgaria dockerd[23158]: time="2019-10-20T06:21:05.748953152+02:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Oct 20 06:21:05 bulgaria dockerd[23158]: time="2019-10-20T06:21:05.792134508+02:00" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
Oct 20 06:21:05 bulgaria dockerd[23158]: time="2019-10-20T06:21:05.792526477+02:00" level=info msg="Daemon shutdown complete"
Oct 20 06:21:05 bulgaria systemd[1]: Stopped Docker Application Container Engine.
-- Subject: Unit docker.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.service has finished shutting down.
Oct 20 10:10:17 bulgaria systemd[1]: Starting Docker Application Container Engine...
-- Subject: Unit docker.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.service has begun starting up.
[...]

@thaJeztah
Copy link
Member

journalctl -xu unfortunately doesn't provide much useful info; can you try journalctl -fu docker to see if there's any errors there?

@pgassmann
Copy link

@thaJeztah journalctl -fu docker does not have logs for that time.

-- Logs begin at Thu 2019-09-12 23:25:16 CEST. --
Oct 20 10:10:17 bulgaria dockerd[29921]: time="2019-10-20T10:10:17.634184316+02:00" level=warning msg="Your kernel does not support swap memory limit"
Oct 20 10:10:17 bulgaria dockerd[29921]: time="2019-10-20T10:10:17.634221167+02:00" level=warning msg="Your kernel does not support cgroup rt period"
Oct 20 10:10:17 bulgaria dockerd[29921]: time="2019-10-20T10:10:17.634235747+02:00" level=warning msg="Your kernel does not support cgroup rt runtime"
Oct 20 10:10:17 bulgaria dockerd[29921]: time="2019-10-20T10:10:17.634472207+02:00" level=info msg="Loading containers: start."
Oct 20 10:10:17 bulgaria dockerd[29921]: time="2019-10-20T10:10:17.782551654+02:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
Oct 20 10:10:20 bulgaria dockerd[29921]: time="2019-10-20T10:10:20.213749365+02:00" level=info msg="Loading containers: done."
Oct 20 10:10:20 bulgaria dockerd[29921]: time="2019-10-20T10:10:20.256409920+02:00" level=info msg="Docker daemon" commit=9013bf583a graphdriver(s)=overlay2 version=19.03.4
Oct 20 10:10:20 bulgaria dockerd[29921]: time="2019-10-20T10:10:20.256484153+02:00" level=info msg="Daemon has completed initialization"
Oct 20 10:10:20 bulgaria dockerd[29921]: time="2019-10-20T10:10:20.265247265+02:00" level=info msg="API listen on /var/run/docker.sock"
Oct 20 10:10:20 bulgaria systemd[1]: Started Docker Application Container Engine.

It looks like it is dependent on the update order. on hosts where docker-ce is updated after containerd.io, the service and containers were running. on hosts where containerd.io was updated after docker-ce, the service is down and on one host I had now to manually kill and remove the containers before i could start them again. restarting the services was not enough.

$ docker-compose up -d
Starting webproxy_nginx-web ... 
Starting webproxy_nginx-letsencrypt ... error

ERROR: for webproxy_nginx-letsencrypt  Cannot start service nginx-letsencrypt: failed to listen to abstract unix socket "/containerd-shim/moby/8b6c8aee6535edefe4b3c4927ced31345591c793e63aa48b5e2d0a9b37e49b35/shim.sock": listen unix Starting webproxy_nginx-web         ... error
ady in use: unknown

i had to manually kill the services (pkill docker; pkill containerd; pkill runc) and then run docker-compose down before docker-compose up -d

journalctl -fu docker from that system:

-- Logs begin at Sun 2019-10-06 04:20:56 CEST. --
Oct 20 10:31:39 live02p dockerd[3932143]: time="2019-10-20T10:31:39.318517081+02:00" level=error msg="stream copy error: reading from a closed fifo"
Oct 20 10:31:39 live02p dockerd[3932143]: time="2019-10-20T10:31:39.318621407+02:00" level=error msg="stream copy error: reading from a closed fifo"
Oct 20 10:31:39 live02p dockerd[3932143]: time="2019-10-20T10:31:39.319651545+02:00" level=error msg="stream copy error: reading from a closed fifo"
Oct 20 10:31:39 live02p dockerd[3932143]: time="2019-10-20T10:31:39.319704104+02:00" level=error msg="stream copy error: reading from a closed fifo"
Oct 20 10:31:39 live02p dockerd[3932143]: time="2019-10-20T10:31:39.473970149+02:00" level=error msg="8b6c8aee6535edefe4b3c4927ced31345591c793e63aa48b5e2d0a9b37e49b35 cleanup: failed to delete container from containerd: no such container"
Oct 20 10:31:39 live02p dockerd[3932143]: time="2019-10-20T10:31:39.474046493+02:00" level=error msg="Handler for POST /v1.25/containers/8b6c8aee6535edefe4b3c4927ced31345591c793e63aa48b5e2d0a9b37e49b35/start returned error: OCI runtime create failed: container with id exists: 8b6c8aee6535edefe4b3c4927ced31345591c793e63aa48b5e2d0a9b37e49b35: unknown"
Oct 20 10:31:39 live02p dockerd[3932143]: time="2019-10-20T10:31:39.521486240+02:00" level=error msg="b37a98b9a33d8057566a54eba2fcd14bd936ed3efad0f8fc7f6c801857109726 cleanup: failed to delete container from containerd: no such container"
Oct 20 10:31:39 live02p dockerd[3932143]: time="2019-10-20T10:31:39.521562002+02:00" level=error msg="Handler for POST /v1.25/containers/b37a98b9a33d8057566a54eba2fcd14bd936ed3efad0f8fc7f6c801857109726/start returned error: OCI runtime create failed: container with id exists: b37a98b9a33d8057566a54eba2fcd14bd936ed3efad0f8fc7f6c801857109726: unknown"
Oct 20 10:31:53 live02p dockerd[3932143]: time="2019-10-20T10:31:53.237269695+02:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Oct 20 10:32:28 live02p dockerd[3932143]: time="2019-10-20T10:32:28.944659562+02:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"

@pgassmann
Copy link

Here the full output of what I had to to on another server that was down: https://pastebin.com/Xyu7TypW

@thaJeztah
Copy link
Member

No direct clue what's causing the issue, looking through those logs (logs with some empty lines cleaned up here: docker_update_issue.log)

The shims for those containers are running;

   CGroup: /system.slice/containerd.service
           ├─29752 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/70ab411a3788605ff5b174f2d6ba625146fb683fe62f0fe48a15100f2
           ├─29785 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/f1a80d6b5bcdc586dec03836f480cfd11d28b772be04af3a8cabf0a4c
           ├─29843 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/86afaa6e5e2a8ab95f681785c9371fe7cf861a6a8945ef7bef1f61487
           ├─29921 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/2839fce4a8ac474443ed36f341509e2b8fe1425ad44bcb0d7e7c865ee
           ├─29932 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/8f6e5547a2cb7b0fb1699321c2aca6f2c3780bcf0eb4bd6a33d0a2ad0
           ├─30055 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/cf38ac6a7df91ec78d1e024f8f2da0a030d47923c27fc7fd7edfcb64e
           ├─30071 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/de22fae597b152b6ffaa34d7a1976bd75ae950a37d29e112262bd4bcb
           └─30718 /usr/bin/containerd

But when trying to use the container, it attempts to create a new socket, which fails, likely fails because there's already a shim running;

root@linux01p ~ # docker start webproxy_nginx-gen
Error response from daemon: failed to listen to abstract unix socket "/containerd-shim/moby/8f6e5547a2cb7b0fb1699321c2aca6f2c3780bcf0eb4bd6a33d0a2ad078ae1a7/shim.sock": listen unix /containerd-shim/moby/8f6e5547a2cb7b0fb1699321c2aca6f2c3780bcf0eb4bd6a33d0a2ad078ae1a7/shim.sock: bind: address already in use: unknown
Error: failed to start containers: webproxy_nginx-gen
root@linux01p ~ # systemctl restart containerd
root@linux01p ~ # docker start webproxy_nginx-gen
Error response from daemon: failed to listen to abstract unix socket "/containerd-shim/moby/8f6e5547a2cb7b0fb1699321c2aca6f2c3780bcf0eb4bd6a33d0a2ad078ae1a7/shim.sock": listen unix /containerd-shim/moby/8f6e5547a2cb7b0fb1699321c2aca6f2c3780bcf0eb4bd6a33d0a2ad078ae1a7/shim.sock: bind: address already in use: unknown
Error: failed to start containers: webproxy_nginx-gen

After restarting docker, something attempts to recreate the container in runc, and fails because it already exists

root@linux01p ~ # systemctl restart docker
...
root@linux01p ~ # docker start webproxy_nginx-gen
Error response from daemon: OCI runtime create failed: container with id exists: 8f6e5547a2cb7b0fb1699321c2aca6f2c3780bcf0eb4bd6a33d0a2ad078ae1a7: unknown
Error: failed to start containers: webproxy_nginx-gen
root@linux01p ~ # docker start 8f6e5547a2cb7b0fb1699321c2aca6f2c3780bcf0eb4bd6a33d0a2ad078ae1a7
Error response from daemon: OCI runtime create failed: container with id exists: 8f6e5547a2cb7b0fb1699321c2aca6f2c3780bcf0eb4bd6a33d0a2ad078ae1a7: unknown
Error: failed to start containers: 8f6e5547a2cb7b0fb1699321c2aca6f2c3780bcf0eb4bd6a33d0a2ad078ae1a7

@alexanderkjeldaas
Copy link

alexanderkjeldaas commented Oct 21, 2019

The team has been working on this issue for the last 3 days; even though the problem was located, finding the right solution turned out to have some issues (fixing the problem caused other up/downgrade scenarios to be broken), so all of those had to be re-verified.

A fix was found, and the containerd.io-1.2.10-3 package, which is available now, should have that fix; https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/

@alexanderkjeldaas were you still running into this issue when upgrading from containerd.io 1.2.5/1.2.6 to 1.2.10-3 ?

My system is working now with the downgrade and restart of containerd (I think). That's awesome. I don't think I'll try the upgrade right now as it's working fine now.

My point was, that even if downgrading was broken, wouldn't it make sense to pull the latest package to avoid new systems getting into trouble?

As you said, there was no solution to the systems that were broken already during this time, but by pulling the packages it would reduce the number of new systems getting into trouble.

So that's why I was surprised that I upgraded and found myself with a broken system 3 (?) days after the issue was reported/detected.

Maybe that could be added as a point to the resolution protocol for issues like this. I know that in an organization like yours, it's probably different people or teams that do fixes vs packaging, so some communication between them is needed to do things like that.

@rsaavedraf
Copy link

rsaavedraf commented Oct 21, 2019

We also had this issue a few days ago on an Ubuntu 16.04.6 LTS server which was running Docker 18.09.6.

We ran updates on Oct/08, and that brought docker-ce-cli up to 19.03.2. But oddly enough, this only updated docker-ce-cli, not docker-ce. We did not realize this at the time, as we restarted existing containers and everything worked fine. Days later there was the sudo vulnerability, so we updated again (Oct/15,) that brought docker-ce-cli from 19.03.2 to 19.03.3, but again, only docker-ce-cli, not docker-ce which remained untouched. We did not realize this, and we did not see any trouble after this update either. Only when developers on that server tried to pull and run new images, we got the OP error.

We found this page after that, and we decided to simply bring our docker-ce-cli to the same version our docker-ce still had, which was 18.09.6. We did so, and the problem persisted even if restarting the docker daemon. Only after completely rebooting the server, everything was back to normal.

@andrewhsu
Copy link
Contributor

To address the original issue reported, we've released containerd.io 1.2.10-3. We're taking our lessons learned from this past release to add more checks to validate upgrade scenario before we release newer versions of containerd.io.

@andrewhsu
Copy link
Contributor

Had a look at #813 (comment) and it looks like this is a separate issue to be tracked in http://github.com/containerd/containerd/issues

@pruwait
Copy link

pruwait commented Nov 7, 2019

DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.6 LTS"

apt search docker-ce
docker-ce/xenial,now 5:19.03.43-0ubuntu-xenial arm64
Docker: the open-source application container engine

docker-ce-cli/xenial,now 5:19.03.43-0ubuntu-xenial arm64
Docker CLI: the open-source application container engine

containerd.io 1.2.10-3 or containerd.io 1.2.10-2 not important.

Process: 6974 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 6974 (code=exited, status=1/FAILURE)

07 14:06:46 OrangePi systemd[1]: Failed to start Docker Application Container Engine.
07 14:06:46 OrangePi systemd[1]: docker.service: Unit entered failed state.
07 14:06:46 OrangePi systemd[1]: docker.service: Failed with result 'exit-code'.
dpkg: Error docker-ce (--configure):

I can't to install docker!

@mirekphd
Copy link

mirekphd commented Nov 24, 2019

In case someone uses Centos 7 or RHEL 7, here's a simple way to work around this bug until version 1.2.10+ of containerd.io gets repaired. All that was required was to auto-downgrade containerd.io:
sudo yum downgrade containerd.io

---> Package containerd.io.x86_64 0:1.2.6-3.3.el7 will be a downgrade
---> Package containerd.io.x86_64 0:1.2.10-3.2.el7 will be erased

@elboulangero
Copy link

elboulangero commented Apr 12, 2020

We seem to be hitting this issue right now in Debian unstable: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956502

@thaJeztah At the time you said:

A fix was found, and the containerd.io-1.2.10-3 package, which is available now, should have that fix; https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/

I know it's a bit late to ask, but is there a chance to know what was the issue, and what was the fix? Thanks!

(it would have been tremendously useful if the source package for containerd.io was available)

@thaJeztah
Copy link
Member

@elboulangero the fix was in docker/containerd-packaging#113, which was related to a change in newer versions of debhelper causing the restart after upgrade to not being done.

@elboulangero
Copy link

Thanks! Somehow I couldn't find the containerd-packaging repo when I was looking for it. Everything is fixed now. Thanks again and sorry for the noise!

@thaJeztah
Copy link
Member

It was a private repository until recently, so that likely explains 😅

@yoonsch217
Copy link

For Cent OS users.

Additionally to #813 (comment),
sudo yum downgrade containerd.io might fail due to some conflicts.

I faced this case, and resolved with the following commands.

sudo yum remove runc
sudo yum install -y https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
sudo yum install docker-ce
sudo systemctl start docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests