docker-compose restart starts the container and reports an error

wrong description

1. When the container is started by the command docker-compose restart

2. When deleting all containers through the command docker stop $(docker ps -a | awk '{ print $1}' | tail -n +2)

The above two commands sometimes cause the following error:

Error response from daemon: cannot stop container: xxx: permission denied

Solution

Execute the following command, and then execute the above related commands again to solve the problem:

sudo aa-remove-unknown

Guess you like

Origin blog.csdn.net/zhoupenghui168/article/details/132076229