Error response : Could not kill running container runc did not terminate sucessfully: container_linux.go:392: init process caused "permission denied"

Viewed 2338

When I tried to run ./byfn up in fabric-samples/first-network, I am getting the following error.

Error response from daemon: Could not kill running container facc0618bbbe6741acf58167842b4a44f4749b69d9428936768959715c84c0fe, cannot remove - Cannot kill container facc0618bbbe6741acf58167842b4a44f4749b69d9428936768959715c84c0fe: unknown error after kill: runc did not terminate sucessfully: container_linux.go:392: signaling init process caused "permission denied"

I tried to reinstall docker, reload docker images, reload fabric-samples, checked at path but did not work out, can anyone light upon what causes to get this error, thanks.

1 Answers

Here is what worked for me. But it has to be repeated everytime. Therefore, its not a good solution:

sudo killall containerd-shim

If its still not working then delete everything and try again

sudo docker rm -vf $(sudo docker ps -a -q)

Try and if it stills complains then try:

sudo docker system prune -a
sudo docker rmi -f $(sudo docker images -q)

And if its still not working then delete the volumes as well

Related