其中 –bind 0.0.0.0 很重要。它要求 Redis Server 接受 Container 所有網路介面的連線,而不只限於 loopback
1 2 3 4
docker ps
error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.46/containers/json": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.
我們在確認目前的 process 時發生了錯誤,意義是 Docker CLI 有安裝,但 Docker Desktop 的 Linux Engine 沒有啟動,所以 The system cannot find the file specified. 表示 docker 指令正在找 Docker Desktop 的 Linux Engine,但那個 named pipe 目前不存在。