my docker starts giving error after a recent update. Existing containers works but I can not build or run any image.
A simple
docker run hello-world
gives me an error:
docker: Error response from daemon: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v1.linux/moby/881b53be5cfe91d19577414c2f4a52dd06804624fe1d2189d06c1c3c13f2b4d1/log.json: no such file or directory): runc did not terminate successfully: unknown.
I tried all the tips that are suggested on the internet regarding this issue as restarting, building links, reinstall…..
My current docker version is 18.09.5, Ubuntu 19.04
Does anyone had a similar issue and solved it?
Best Answer
To check the issue by run docker in the debug mode.
systemctl stop docker
dockerd --debug
docker start container_name
Then check the output in docker debug console in 2.
In my case, it shows
And solve it by removing the container state folder with
rm -rf /var/run/docker/runtime-runc/moby/docker_id
Then start your container.
Refer to: Solving Error response from daemon OCI runtime create failed container with id exists