I'm trying to remove a docker/image/container and all stuff which is somehow connected with docker, but first of all I need to stop it. While I'm trying to execute this command:
docker stop $(docker ps -a -q)
It gives me an error:
[:/home/imran] 1 $ docker stop $(docker ps -a -q) 2015/01/16 00:37:38 Get http:///var/run/docker.sock/v1.14/containers/json?all=1: dial unix /var/run/docker.sock: permission denied Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...] Stop a running container by sending SIGTERM and then SIGKILL after a grace period -t, --time=10 Number of seconds to wait for the container to stop before killing it. Default is 10 seconds.
How can I uninstall a docker container?