且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

构建映像时无法运行docker

更新时间:2021-11-17 07:16:29

您的问题不在于Docker命令,因为它在错误消息中表示您的Docker守护程序未运行,或者由于某些配置问题而无法连接到它。

your problem is not with the Docker command, as it says in the error message your docker daemon is not running, or because of some configuration problem you can not connect to it.

您刚刚安装了Docker吗?您是否已完成安装指南

Did you just install Docker? Did you do all the steps in the Installation Guide?

您可以使用 docker run hello-world 测试您的Docker安装>或 sudo docker run hello-world

如果仅与sudo兼容,那是因为您未配置docker对于您的用户,请参阅: https://docs.docker.com/install/linux / linux-postinstall /

If it only works with sudo it's because you didn't configure docker for your user, see: https://docs.docker.com/install/linux/linux-postinstall/