I'm running Docker from within a container, which I start like so:
docker run -d `
-v //./pipe/docker_engine://./pipe/docker_engine `
-v "$($dockerpath):C:/docker"
From within the container, I can run docker ps
just fine and it returns the running containers on the host engine.
However, when I run docker-compose
, I get the error:
Couldn't connect to Docker daemon. You might need to start Docker for Windows.
This worked fine back when I used TCP/TLS to connect to the Docker engine. The problem started when I switched to using named pipes.
Any ideas how to fix?