admin管理员组文章数量:1612098
在安装好docker容器环境后,启动docker容器时,使用命令docker run hello-world
遇到如下提示
/usr/bin/docker-current: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See ‘/usr/bin/docker-current run --help’.
使用命令查看docker容器的状态
systemctl status docker
得到如下提示:
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: http://docs.docker
可以看到docker没有启动,安装完成后要启动
systemctl start docker
这里建议把docker设置成开机自启动,命令如下:
systemctl enable docker
问题解决
版权声明:本文标题:运行docker容器时遇到问题usrbindocker-current: Cannot connect to the Docker daemon at unix:var 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dongtai/1728628056a1166747.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论