〖错误修复〗Linux CentOS 7 docker-compose 语法回应: ERROR: Couldn'

使用语法

docker-compose up -d nginx mysql

回应错误

ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

解决办法

启动 docker。

sudo systemctl start docker

通过运行 hello-world 映像验证 Docker Engine 是否已正确启动。

sudo docker run hello-world// 出现 Hello from Docker! 说明 docker 启动成功

关于作者: 网站小编

码农网专注IT技术教程资源分享平台,学习资源下载网站,58码农网包含计算机技术、网站程序源码下载、编程技术论坛、互联网资源下载等产品服务,提供原创、优质、完整内容的专业码农交流分享平台。

热门文章