Docker: "failed to create shim task: ttrpc"

Hi, I just upgraded to Fedora 39. When I tried to build a Docker image or start a container, for example:

docker run -it --rm debian:buster bash -c "echo Hello"

I got this error:

docker: Error response from daemon: failed to create task for container: failed to create shim task: ttrpc: cannot marshal unknown type: *task.CreateTaskRequest: unknown.

What went wrong?

1 Like

I have the same problem:

failed to create task for container: failed to create shim task: ttrpc: cannot marshal unknown type: *task.CreateTaskRequest: unknown

Solved using docker-ce:

Install Docker Engine on Fedora | Docker Docs

and docker-compose of github.

Thanks. I uninstalled old Docker and installed it again using the guide. Now it’s working again.

But I still wonder what dependency caused the error.

It is probably related to this issue: https://bugzilla.redhat.com/show_bug.cgi?id=2237396
What helped me was downgrading to containerd-1.6.19-2.fc39.x86_64.

Just download appropriate package here: containerd-1.6.19-2.fc39 | Build Info | koji
and run:

sudo dnf downgrade <path to downloaded package>
systemctl restart containerd
systemctl restart docker