mac docker 安装情况

brew install docker

brew install docker-compose

brew install docker-machine


运行docker-compose build时报错如下:

ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; min-height: 13.0px} span.s1 {font-variant-ligatures: no-common-ligatures; color: #b42419} span.s2 {font-variant-ligatures: no-common-ligatures}


If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.



解决方式:docker-machine create default


然后继续docker-compose build


凉葱落

凉葱落python开发工程师