输入命令后返回如下, stop 和 rm 效果一样 具体代码: sudo docker stop $(docker ps -qa) Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/json?all=1: dial unix /var/run/docker.sock: connect: permission denied "docker stop" requires at least 1 argument. See 'docker stop --help'.
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
Stop one or more running containers
1
xupefei 2020-02-20 00:38:36 +08:00
docker ps -qa 失败了。
你在 docker 用户组里吗? |
2
CallMeReznov 2020-02-20 06:04:45 +08:00
permission denied
|