iT邦幫忙

0

〖錯誤修復〗Linux CentOS 7 docker-compose 語法回應: ERROR: Couldn't connect to Docker ...

使用語法

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 啟動成功

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言