docker 构建遇到的一些问题

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

 修改/etc/docker/daemon.json中的内容,将其改为,如下内容:

 然后再重启docker: systemctl start docker

最后在工作目录下执行构建。

猜你喜欢

转载自www.cnblogs.com/irisWhq/p/11976825.html
今日推荐