I recently installed the new Raspbian (buster) for my Raspberry Pi 3 B+. and installed docker.io from apt-get
I am getting this error when trying to start containers

Code: Select all

sudo docker restart watchtower
Error response from daemon: Cannot restart container watchtower: OCI runtime create failed: container with id exists: 49774488125d7ebffe5bd3897c05dd9451c2e6d4897053c2db25a9d190bc4361: unknown
sudo systemctl status docker.service returns this

Code: Select all

? docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-06-25 04:23:32 BST; 34min ago
     Docs: https://docs.docker.com
 Main PID: 2078 (dockerd)
    Tasks: 30
   Memory: 120.8M
   CGroup: /system.slice/docker.service
           tq2078 /usr/sbin/dockerd -H fd://
           tq2086 docker-containerd --config /var/run/docker/containerd/containerd.toml --log-level info
           tq4683 runc init
           mq5162 runc init
Jun 25 04:38:01 raspberrypi dockerd[2078]: time="2019-06-25T04:38:01.827114429+01:00" level=error msg="stream copy error: reading from a closed fifo"
Jun 25 04:38:01 raspberrypi dockerd[2078]: time="2019-06-25T04:38:01.827377658+01:00" level=error msg="stream copy error: reading from a closed fifo"
Jun 25 04:38:02 raspberrypi dockerd[2078]: time="2019-06-25T04:38:02.018416755+01:00" level=error msg="49774488125d7ebffe5bd3897c05dd9451c2e6d4897053c2db25a9d190bc4361 cleanup: failed to delete container from containerd: no such containe
Jun 25 04:38:02 raspberrypi dockerd[2078]: time="2019-06-25T04:38:02.109656565+01:00" level=error msg="Handler for POST /v1.39/containers/watchtower/restart returned error: Cannot restart container watchtower: OCI runtime create failed:
Jun 25 04:58:03 raspberrypi dockerd[2078]: time="2019-06-25T04:58:03.772697550+01:00" level=info msg="shim docker-containerd-shim started" address=/containerd-shim/moby/49774488125d7ebffe5bd3897c05dd9451c2e6d4897053c2db25a9d190bc4361/shi
Jun 25 04:58:03 raspberrypi dockerd[2078]: time="2019-06-25T04:58:03.819155978+01:00" level=info msg="shim reaped" id=49774488125d7ebffe5bd3897c05dd9451c2e6d4897053c2db25a9d190bc4361
Jun 25 04:58:03 raspberrypi dockerd[2078]: time="2019-06-25T04:58:03.828714986+01:00" level=error msg="stream copy error: reading from a closed fifo"
Jun 25 04:58:03 raspberrypi dockerd[2078]: time="2019-06-25T04:58:03.828762330+01:00" level=error msg="stream copy error: reading from a closed fifo"
Jun 25 04:58:04 raspberrypi dockerd[2078]: time="2019-06-25T04:58:04.038282546+01:00" level=error msg="49774488125d7ebffe5bd3897c05dd9451c2e6d4897053c2db25a9d190bc4361 cleanup: failed to delete container from containerd: no such containe
Jun 25 04:58:04 raspberrypi dockerd[2078]: time="2019-06-25T04:58:04.157389552+01:00" level=error msg="Handler for POST /v1.39/containers/watchtower/restart returned error: Cannot restart container watchtower: OCI runtime create failed:
I am either trying to get this working, or looking for a link to download the older stretch image... which I can't seem to find.
thanks!
schmidty1913 wrote:
Tue Jun 25, 2019 4:01 am
I recently installed the new Raspbian (buster) for my Raspberry Pi 3 B+. and installed docker.io from apt-get
I am getting this error when trying to start containers

Code: Select all

sudo docker restart watchtower
Error response from daemon: Cannot restart container watchtower: OCI runtime create failed: container with id exists: 49774488125d7ebffe5bd3897c05dd9451c2e6d4897053c2db25a9d190bc4361: unknown
sudo systemctl status docker.service returns this

Code: Select all

? docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-06-25 04:23:32 BST; 34min ago
     Docs: https://docs.docker.com
 Main PID: 2078 (dockerd)
    Tasks: 30
   Memory: 120.8M
   CGroup: /system.slice/docker.service
           tq2078 /usr/sbin/dockerd -H fd://
           tq2086 docker-containerd --config /var/run/docker/containerd/containerd.toml --log-level info
           tq4683 runc init
           mq5162 runc init
Jun 25 04:38:01 raspberrypi dockerd[2078]: time="2019-06-25T04:38:01.827114429+01:00" level=error msg="stream copy error: reading from a closed fifo"
Jun 25 04:38:01 raspberrypi dockerd[2078]: time="2019-06-25T04:38:01.827377658+01:00" level=error msg="stream copy error: reading from a closed fifo"
Jun 25 04:38:02 raspberrypi dockerd[2078]: time="2019-06-25T04:38:02.018416755+01:00" level=error msg="49774488125d7ebffe5bd3897c05dd9451c2e6d4897053c2db25a9d190bc4361 cleanup: failed to delete container from containerd: no such containe
Jun 25 04:38:02 raspberrypi dockerd[2078]: time="2019-06-25T04:38:02.109656565+01:00" level=error msg="Handler for POST /v1.39/containers/watchtower/restart returned error: Cannot restart container watchtower: OCI runtime create failed:
Jun 25 04:58:03 raspberrypi dockerd[2078]: time="2019-06-25T04:58:03.772697550+01:00" level=info msg="shim docker-containerd-shim started" address=/containerd-shim/moby/49774488125d7ebffe5bd3897c05dd9451c2e6d4897053c2db25a9d190bc4361/shi
Jun 25 04:58:03 raspberrypi dockerd[2078]: time="2019-06-25T04:58:03.819155978+01:00" level=info msg="shim reaped" id=49774488125d7ebffe5bd3897c05dd9451c2e6d4897053c2db25a9d190bc4361
Jun 25 04:58:03 raspberrypi dockerd[2078]: time="2019-06-25T04:58:03.828714986+01:00" level=error msg="stream copy error: reading from a closed fifo"
Jun 25 04:58:03 raspberrypi dockerd[2078]: time="2019-06-25T04:58:03.828762330+01:00" level=error msg="stream copy error: reading from a closed fifo"
Jun 25 04:58:04 raspberrypi dockerd[2078]: time="2019-06-25T04:58:04.038282546+01:00" level=error msg="49774488125d7ebffe5bd3897c05dd9451c2e6d4897053c2db25a9d190bc4361 cleanup: failed to delete container from containerd: no such containe
Jun 25 04:58:04 raspberrypi dockerd[2078]: time="2019-06-25T04:58:04.157389552+01:00" level=error msg="Handler for POST /v1.39/containers/watchtower/restart returned error: Cannot restart container watchtower: OCI runtime create failed:
I am either trying to get this working, or looking for a link to download the older stretch image... which I can't seem to find.
thanks! Raspbian Stretch is available:
http://downloads.raspberrypi.org/
Take what I advise as advice not the utopian holy grail, and it is gratis !!