Linux 查看docker version 显示cannot connect to the docker daemon at Unix :///var /run docker.sock. Is
时间: 2023-10-12 09:13:48 浏览: 73
sue:
This error message usually indicates that the user trying to run the command does not have the necessary permissions to access the Docker daemon.
To resolve this issue, you can try running the command with sudo or as the root user. Alternatively, you can add the user to the docker group to grant them permission to run Docker commands.
To add the user to the docker group, run the following command:
```
sudo usermod -aG docker <username>
```
Replace <username> with the actual username of the user you want to add to the docker group.
After adding the user to the docker group, log out and log back in for the changes to take effect. Then, try running the Docker command again without sudo.
阅读全文
相关推荐



















