-
Notifications
You must be signed in to change notification settings - Fork 498
Open
Description
When using ghcr.io/devcontainers/features/docker-outside-of-docker:1
inside of mcr.microsoft.com/devcontainers/base:trixie
, the devcontainer build failed with the following error:
> [dev_containers_target_stage 5/5] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=docker-outside-of-docker_0,target=/tmp/build-features-src/docker-outside-of-docker_0 cp -ar /tmp/build-features-src/docker-outside-of-docker_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/docker-outside-of-docker_0 && cd /tmp/dev-container-features/docker-outside-of-docker_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/docker-outside-of-docker_0:
0.322 ===========================================================================
0.322 Feature : Docker (docker-outside-of-docker)
0.322 Description : Re-use the host docker socket, adding the Docker CLI to a container. Feature invokes a script to enable using a forwarded Docker socket within a container to run Docker commands.
0.322 Id : ghcr.io/devcontainers/features/docker-outside-of-docker
0.322 Version : 1.6.4
0.322 Documentation : https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker
0.322 Options :
0.322 VERSION="latest"
0.322 MOBY="true"
0.322 MOBYBUILDXVERSION="latest"
0.322 DOCKERDASHCOMPOSEVERSION="v2"
0.322 INSTALLDOCKERBUILDX="true"
0.322 INSTALLDOCKERCOMPOSESWITCH="true"
0.322 ===========================================================================
0.338 Distro codename 'trixie' matched filter 'trixie bookworm buster bullseye bionic focal jammy noble plucky'
1.659 Get:1 http://deb.debian.org/debian trixie InRelease [138 kB]
1.708 Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.1 kB]
1.728 Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
1.751 Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9668 kB]
1.922 Get:5 http://deb.debian.org/debian trixie-updates/main amd64 Packages [2432 B]
1.940 Get:6 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [33.1 kB]
2.128 Get:7 https://packages.microsoft.com/repos/microsoft-debian-trixie-prod trixie InRelease [3952 B]
2.182 Get:8 https://packages.microsoft.com/repos/microsoft-debian-trixie-prod trixie/main all Packages [342 B]
2.602 Fetched 9936 kB in 1s (9115 kB/s)
2.602 Reading package lists...
3.303 Reading package lists...
4.135 Building dependency tree...
4.328 Reading state information...
4.359 E: Unable to locate package moby-cli
4.359 E: Unable to locate package moby-buildx
4.361 (!) It seems packages for moby not available in OS debian trixie (amd64). To resolve, either: (1) set feature option '"moby": false' , or (2) choose a compatible OS version (eg: 'ubuntu-24.04').
[2025-09-04T19:54:52.589Z]
4.361 ERROR: Feature "Docker (docker-outside-of-docker)" (ghcr.io/devcontainers/features/docker-outside-of-docker) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker for help troubleshooting this error.
To reproduce, use the following .devcontainer.json
{
"image": "mcr.microsoft.com/devcontainers/base:trixie",
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
}
}
Works fine with mcr.microsoft.com/devcontainers/base:bookworm
and base:bullseye
marcindulak, lucasfijen and SashkaHavr
Metadata
Metadata
Assignees
Labels
No labels