I’m new to docker and I have an error while I’m trying to stop a container.
First of all, I use Linux and I do not understand why I always have to use ‘sudo’ to run a simple docker stop web command.
Next, when I type such command as above (e.g. sudo docker stop web) I get an error message:
Error response from daemon: cannot stop container: web: permission denied
I use sudo and I should work even without sudo command