-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Random "Is the docker daemon running?" with Docker-in-Docker Feature #383
Comments
OK, this is straight up a bug with the Docker-in-Docker feature with its usage with the CI feature. It could be a CLI bug since I have not seen this issue with Codespaces. I made a very basic repo that demonstrates this happens ~20% (crude math) of the time. See here: |
Sorry, not sure why this was closed, reopened it. Since I am un-sure if the issue should be in one of these places or not: |
Continuing in devcontainers/ci#192. |
I make heavy use of docker-in-docker and have noticed across a few projects that use (https://github.com/devcontainers/ci) randomly failing with the following message. NOTE: I never see this message in Codespaces, only when using the CLI via CI project.
At first I thought I needed to wait for docker to start up and I tried adding something like this to my
postCreateCommand
script:timeout 60s bash -c 'until docker info; do sleep 5; done'
However it turns out that something lower level was going wrong. The logs always showed this error when the issue happened shortly after the devcontainer was created:
This led me to investigate the following issues which may be related:
I tried adding
"privileged": true,
to my JSON in the hopes this would help and it did not. Random failures still occur. If it helps, here are some log outputs to compare. These are pulled fromIn the work I am doing for this project (https://github.com/customink/crypteia/tree/MultiPlatform) I have set each job's test to do a simple
docker inspect
to fail fast and you can see where it fails further up in my postCreate script which is doing a docker run command. But make no mistake, even if that postCreate were removed the random failures would happen because the devcontainer somehow is not in a good state with docker-in-docker. Been seeing this on other project's CI as well.The text was updated successfully, but these errors were encountered: