Possible bug docker-in-docker? could not connect to docker daemon #63776
-
Select Topic AreaBug BodyHey, I'm experimenting with docker-in-docker and codespaces. The 1 times out of 15 I get the following error, it seems random: Only a full rebuild solves it or starting a completely new codespace. Update 16.08.2023: Full error log here Full output: https://gist.github.com/mandrasch/3b001bccdb8ab9ab75ebd7ddc6973727 Update 16.08.2023: Issue found, missed it first time devcontainers/features#634 Repo: https://github.com/mandrasch/ddev-craftcms-vite Thanks in advance for any hints, much appreciated! Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 18 replies
-
|
in all of my .devcontainer.json files, i add a mount for the .sock file in the host machine to the one in the docker. This way any docker commands i run is actually being ran on the host machine. this also means any devcontainer + docker shenanigans i run into, it's because of the host machine and not the devcontainer, which is easier to control (though kind of not with codespaces but you get what i mean). anyways, here's the mount. "mounts": [
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
], |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Hi 👋 Responded on the devcontainers/features#634 issue with more details.
|
Beta Was this translation helpful? Give feedback.
Hi 👋
Responded on the devcontainers/features#634 issue with more details.