Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

docker compose down fails due to "permission denied"

On running docker-compose stop it fails to stop the docker images, and gives an error like this:

ERROR: for nginx cannot stop container: 5f5ed6d2110a0d845508ede160d8196d3e01f1d677e22e4944adc8c984800cff: Cannot kill container 5f5ed6d2110a0d845508ede160d8196d3e01f1d677e22e4944adc8c984800cff: Unknown error after kill: docker-runc did not terminate sucessfully: container_linux.go:393: signaling init process caused "Permission Denied": unknown

The images are still running properly, they just don't restart. I am running docker-compose on Ubuntu.

like image 305
Rijo Simon Avatar asked May 23 '18 07:05

Rijo Simon


People also ask

How do I fix docker permission denied?

Similar to running a docker command without the sudo command, a stopped Docker Engine triggers the permission denied error. How do you fix the error? By restarting your Docker engine. Run the systemctl command below to confirm the Docker Engine's status ( status docker ) and if it's running.

What is docker compose down?

The docker-compose down command helps to Stop and remove containers, networks, images, and volumes.

How do I remove all images from docker?

Remove all Containers: To remove all containers from the docker-machine, we need to get the ids of all the containers. We can simply get the ids of the containers with the command docker ps -aq, then by using the docker rm command, we can remove all the containers in the docker-machine.


1 Answers

2021: in my case, I am using the

sudo aa-remove-unknown

then, run

sudo docker-compose down

then, the application down successfully

like image 161
Almatin Siswanto Avatar answered Oct 21 '22 07:10

Almatin Siswanto