Another wasted rabbit hole.

There seems to be a conflict between running VSC extensions dev container and docker.

I’m using VS Code Remote SSH to connect to a Mac mini, where:

Docker runs via Colima

The dev container runs inside Docker

Tried to mount the host Docker socket /Users/murwell/.colima/default/docker.sock into the dev container to use Docker CLI inside

But:

Remote SSH uses SSHFS to handle mounts — not real Docker bind mounts.

So when I declared this:

source=/Users/murwell/.colima/default/docker.sock,target=/var/run/docker.sock,type=bind

But rather than VS Code mounting the live host Docker socket into the container, and the Docker CLI inside the container could talk to it, nothing good happened.

VS Code copied a non-functional file that looks like a socket into the container using SSHFS. So docker.sock existed, but it wasn’t connected to a running Docker daemon — it was just a dead file.

Unix sockets don’t work over SSHFS

So, I have dev container working but not Docker. There must be a fix. Guess I’ll waste another five hours.

I added the below to settings.json in VSC. It dod not work.

"docker.dockerPath": "/opt/homebrew/bin/docker" 

Visit Emlekezik.com