簡體   English   中英

無法連接到 Docker 守護進程 WINDOWS

[英]Unable to connect to Docker daemon WINDOWS

我已經為 WINDOWS 10 安裝了穩定的 Docker 桌面。我嘗試運行:

docker run hello-world
    Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

所以看起來它可以連接到Docker守護進程。 但是,當我運行自己的命令時:

C:\Users\cortex>bash
DESKTOP-2GHN95P:/tmp/docker-desktop-root/mnt/host/c/Users/cortex/# cortex deploy

我收到以下錯誤:

error: unable to connect to the Docker daemon

please confirm Docker is running, or if Docker is not installed, install it by following the instructions for your operating system: https://docs.docker.com/install

我是 Docker 的新手,我無法弄清楚這個問題。 任何人有任何想法?

看起來您正在嘗試從 WSL 運行 cortex,該 WSL 試圖對主機操作系統中的 docker 引擎采取行動。 如果您有 WSL 2,則可以在設置中為 Docker 桌面啟用 WSL 2 集成。 如果這不是一個選項,您可以隨時在 WSL 上安裝 docker,

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM