So I pulled and ran a httpd container in my VM that is running ubuntu
When I run the sudo docker stop a6002 to stop the container, I’m getting the output as
Error response from daemon: cannot stop container: a6002: permission denied
So I pulled and ran a httpd container in my VM that is running ubuntu
When I run the sudo docker stop a6002 to stop the container, I’m getting the output as
Error response from daemon: cannot stop container: a6002: permission denied
Try issuing a docker kill command:
sudo docker kill <container id or name>
docker stop is more of a graceful stop, where are kill will try to forcefully stop/kill your container.
That’s strange. Please try restarting the Docker service and try again. Are you able to stop any other container? You can also try running a new one and see if you can stop it.