Closed tschaffter closed 1 year ago
Hi 👋
Thanks for opening the issue, I was able to reproduce the error with the provided configuration.
@tschaffter can you try with "moby": false
? It fixed my issue.
Reasoning: If moby:true
, it installs from Micrsoft apt repo which does not contain the latest versions. However, with moby:false
, it installs from Docker ap repo (which works)
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2.2.0": {
"version": "24.0.3",
"moby": false
}
}
Specifying moby: false
works. Thanks @samruddhikhandale
$ docker exec -it sage_devcontainer docker --version
Docker version 24.0.3, build 3713ee1
First, thank you a lot for developing this feature!
We have been using the
docker-in-docker
for about 6 months now. The version of Docker20.10.21
does not provide the commanddocker scan
so I attempted to update Docker to a more recent version. I first tried to specify the latest Docker version (24.0.3), which failed. I then tried the latest 23.x version (23.0.6), which also failed. The next version is back to20.10
, which works.Here is the error thrown by VS Code when trying to build a dev container with:
Error:
The version of Docker installed on the host is
Docker version 20.10.17, build 100c701
. My understanding from the README ofdocker-in-docker
is that the version of Docker installed withdocker-in-docker
is independent from the host's docker instance. However, there still seems to be some dependency as the Limitations section says: