Skip to content

Unable to use docker-outside-of-docker within Ubuntu 26.04 LTS image #1655

@piquark6046

Description

@piquark6046

I cannot use docker-outside-of-docker within Ubuntu 26.04 LTS image because moby and Docker CLI via Dev Container Features do not support Ubuntu 26.04 LTS image.

Related to devcontainers/images#1843

build log

[15 ms] Dev Containers 0.459.0 in VS Code 1.120.0 (0958016b2af9f09bb4257e0df4a95e2f90590f9f).
[14 ms] Start: Resolving Remote
[22 ms] Setting up container for folder or workspace: /var/home/piqua/repos/TypescriptPrime/TypescriptPrime.code-workspace
[22 ms] Host: unix:///run/user/1000/docker.sock
[23 ms] Start: Check Docker is running
[24 ms] Start: Run: docker version
[43 ms] Client:
 Version:           29.4.2
 API version:       1.54
 Go version:        go1.26.2-X:nodwarf5
 Git commit:        1.fc44
 Built:             Fri May  1 00:00:00 2026
 OS/Arch:           linux/amd64
 Context:           default

Server:
 Engine:
  Version:          29.4.2
  API version:      1.54 (minimum version 1.40)
  Go version:       go1.26.2-X:nodwarf5
  Git commit:       1.fc44
  Built:            Fri May  1 00:00:00 2026
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
[43 ms]   Version:          2.2.3
  GitCommit:        1.fc44
 runc:
  Version:          1.4.2
  GitCommit:        
 docker-init:
  Version:          0.19.0
  GitCommit:        
 rootlesskit:
  Version:          3.0.0
  ApiVersion:       1.1.1
  NetworkDriver:    slirp4netns
  PortDriver:       builtin
  StateDir:         /run/user/1000/dockerd-rootless
 slirp4netns:
  Version:          1.3.1
  GitCommit:        e5e368c4f5db6ae75c2fce786e31eef9da6bf236
[45 ms] Start: Run: docker volume ls -q
[57 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=/var/home/piqua/repos/TypescriptPrime --filter label=vsch.quality=stable
[70 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/var/home/piqua/repos/TypescriptPrime --filter label=devcontainer.config_file=/var/home/piqua/repos/TypescriptPrime/.devcontainer/devcontainer.json
[83 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/var/home/piqua/repos/TypescriptPrime
[95 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/var/home/piqua/repos/TypescriptPrime
[107 ms] Running Dev Containers CLI:   up --user-data-folder /var/home/piqua/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-3eabb1a2-7f2c-4700-8db0-a1df6fbd293d1779192868399 --workspace-folder /var/home/piqua/repos/TypescriptPrime --workspace-mount-consistency cached --gpu-availability detect --id-label devcontainer.local_folder=/var/home/piqua/repos/TypescriptPrime --id-label devcontainer.config_file=/var/home/piqua/repos/TypescriptPrime/.devcontainer/devcontainer.json --log-level debug --log-format json --config /var/home/piqua/repos/TypescriptPrime/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --experimental-lockfile --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root --include-configuration --include-merged-configuration
[108 ms] Start: Run: /usr/share/code/code /var/home/piqua/.vscode/extensions/ms-vscode-remote.remote-containers-0.459.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /var/home/piqua/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-3eabb1a2-7f2c-4700-8db0-a1df6fbd293d1779192868399 --workspace-folder /var/home/piqua/repos/TypescriptPrime --workspace-mount-consistency cached --gpu-availability detect --id-label devcontainer.local_folder=/var/home/piqua/repos/TypescriptPrime --id-label devcontainer.config_file=/var/home/piqua/repos/TypescriptPrime/.devcontainer/devcontainer.json --log-level debug --log-format json --config /var/home/piqua/repos/TypescriptPrime/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --experimental-lockfile --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root --include-configuration --include-merged-configuration
[217 ms] @devcontainers/cli 0.86.1. Node.js v22.22.1. linux 7.0.8-200.fc44.x86_64 x64.
[217 ms] Start: Run: docker buildx version
[264 ms] github.com/docker/buildx 0.33.0 1.fc44
[264 ms] 
[264 ms] Start: Run: docker version --format {{.Server.Version}}
[280 ms] 29.4.2
[280 ms] 
[280 ms] Start: Run: docker -v
[290 ms] Start: Resolving Remote
[291 ms] Start: Run: git rev-parse --show-cdup
[296 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/var/home/piqua/repos/TypescriptPrime --filter label=devcontainer.config_file=/var/home/piqua/repos/TypescriptPrime/.devcontainer/devcontainer.json
[307 ms] Start: Run: docker inspect --type image mcr.microsoft.com/devcontainers/base:resolute
[319 ms] Loading 147 extra certificates from /etc/ssl/certs/ca-certificates.crt.
[1433 ms] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/node:1'...
[1433 ms] * Processing feature: ghcr.io/devcontainers/features/node:1
[1744 ms] Start: Run: docker-credential-secret get
[2442 ms] * Processing feature: ghcr.io/devcontainers/features/common-utils
[2805 ms] Resolving Feature dependencies for 'ghcr.io/devcontainers-extra/features/act:1'...
[2805 ms] * Processing feature: ghcr.io/devcontainers-extra/features/act:1
[3176 ms] * Processing feature: ghcr.io/devcontainers-extra/features/gh-release
[3578 ms] Resolving Feature dependencies for 'ghcr.io/devcontainers-extra/features/npm-package:1'...
[3578 ms] * Processing feature: ghcr.io/devcontainers-extra/features/npm-package:1
[3987 ms] * Processing feature: ghcr.io/devcontainers/features/node
[4387 ms] Resolving Feature dependencies for 'ghcr.io/devcontainers-extra/features/typescript:2'...
[4387 ms] * Processing feature: ghcr.io/devcontainers-extra/features/typescript:2
[4754 ms] * Processing feature: ghcr.io/devcontainers-extra/features/npm-package
[5121 ms] * Processing feature: ghcr.io/devcontainers/features/node
[40748 ms] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/docker-outside-of-docker:1'...
[40748 ms] * Processing feature: ghcr.io/devcontainers/features/docker-outside-of-docker:1
[41146 ms] * Processing feature: ghcr.io/devcontainers/features/common-utils
[41552 ms] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/rust:1'...
[41552 ms] * Processing feature: ghcr.io/devcontainers/features/rust:1
[41939 ms] * Processing feature: ghcr.io/devcontainers/features/common-utils
[42287 ms] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required.  Removing from installation order...
[42288 ms] Soft-dependency 'ghcr.io/devcontainers-extra/features/gh-release' is not required.  Removing from installation order...
[42288 ms] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required.  Removing from installation order...
[42288 ms] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required.  Removing from installation order...
[42288 ms] * Fetching feature: act_0_oci
[43041 ms] Files to omit: ''
[43046 ms] * Fetched feature: act_0_oci version 1.0.15
[43046 ms] * Fetching feature: docker-outside-of-docker_1_oci
[43566 ms] Files to omit: ''
[43567 ms] * Fetched feature: docker-outside-of-docker_1_oci version 1.9.1
[43567 ms] * Fetching feature: node_2_oci
[44273 ms] Files to omit: ''
[44275 ms] * Fetched feature: node_2_oci version 1.7.1
[44275 ms] * Fetching feature: rust_3_oci
[44921 ms] Files to omit: ''
[44923 ms] * Fetched feature: rust_3_oci version 1.5.0
[44923 ms] * Fetching feature: npm-package_4_oci
[45578 ms] Files to omit: ''
[45579 ms] * Fetched feature: npm-package_4_oci version 1.0.4
[45579 ms] * Fetching feature: typescript_5_oci
[46215 ms] Files to omit: ''
[46216 ms] * Fetched feature: typescript_5_oci version 2.0.16
[46220 ms] Start: Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 --build-context dev_containers_feature_content_source=/tmp/devcontainercli-piqua/container-features/0.86.1-1779192870369 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/base:resolute --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -f /tmp/devcontainercli-piqua/container-features/0.86.1-1779192870369/Dockerfile.extended -t vsc-typescriptprime-ead8b7c396c5a4fc42f5e247e1016a8d96251dd79fa11efe216fdb2e2e312523-features /var/home/piqua/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder
[+] Building 0.4s (18/23)                                        docker:default
 => [context dev_containers_feature_content_source] load from client       0.0s
 => => transferring dev_containers_feature_content_source: 9.20kB          0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 21.89kB         0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 25.66kB         0.0s
[+] Building 0.5s (18/23)                                        docker:default
 => => transferring dev_containers_feature_content_source: 39.74kB         0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 157B            0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 8.97kB          0.0s
 => [dev_containers_feature_content_normalize 1/3] FROM mcr.microsoft.com  0.0s
[+] Building 0.6s (18/23)                                        docker:default
 => => transferring dev_containers_feature_content_source: 39.74kB         0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 157B            0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 8.97kB          0.0s
 => [dev_containers_feature_content_normalize 1/3] FROM mcr.microsoft.com  0.0s
[+] Building 0.8s (18/23)                                        docker:default
 => => transferring dev_containers_feature_content_source: 39.74kB         0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 157B            0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 8.97kB          0.0s
 => [dev_containers_feature_content_normalize 1/3] FROM mcr.microsoft.com  0.0s
[+] Building 0.9s (18/23)                                        docker:default
 => => transferring dev_containers_feature_content_source: 39.74kB         0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 157B            0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 8.97kB          0.0s
 => [dev_containers_feature_content_normalize 1/3] FROM mcr.microsoft.com  0.0s
[+] Building 1.0s (18/23)                                        docker:default
 => => transferring dev_containers_feature_content_source: 39.74kB         0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 157B            0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 8.97kB          0.0s
 => [dev_containers_feature_content_normalize 1/3] FROM mcr.microsoft.com  0.0s
[+] Building 1.0s (19/23)                                        docker:default
 => [internal] load build definition from Dockerfile.extended              0.0s
 => => transferring dockerfile: 6.59kB                                     0.0s
 => [internal] load metadata for mcr.microsoft.com/devcontainers/base:res  0.3s
 => [context dev_containers_feature_content_source] load .dockerignore     0.0s
 => => transferring dev_containers_feature_content_source: 2B              0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [context dev_containers_feature_content_source] load from client       0.0s
 => => transferring dev_containers_feature_content_source: 9.20kB          0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 21.89kB         0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 25.66kB         0.0s
 => [context dev_containers_feature_content_source] load from client       0.0s
 => => transferring dev_containers_feature_content_source: 39.74kB         0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 157B            0.0s
 => [context dev_containers_feature_content_source] load from client       0.1s
 => => transferring dev_containers_feature_content_source: 8.97kB          0.0s
 => [dev_containers_feature_content_normalize 1/3] FROM mcr.microsoft.com  0.0s
 => => resolve mcr.microsoft.com/devcontainers/base:resolute@sha256:bb779  0.0s
 => [context dev_containers_feature_content_source] load from client       0.0s
 => => transferring dev_containers_feature_content_source: 4.83kB          0.0s
 => CACHED [dev_containers_target_stage  2/10] RUN mkdir -p /tmp/dev-cont  0.0s
 => CACHED [dev_containers_feature_content_normalize 2/3] COPY --from=dev  0.0s
 => CACHED [dev_containers_feature_content_normalize 3/3] RUN chmod -R 07  0.0s
 => CACHED [dev_containers_target_stage  3/10] COPY --from=dev_containers  0.0s
 => CACHED [dev_containers_target_stage  4/10] RUN echo "_CONTAINER_USER_  0.0s
 => CACHED [dev_containers_target_stage  5/10] RUN --mount=type=bind,from  0.0s
 => ERROR [dev_containers_target_stage  6/10] RUN --mount=type=bind,from=  0.6s
------
 > [dev_containers_target_stage  6/10] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=docker-outside-of-docker_1,target=/tmp/build-features-src/docker-outside-of-docker_1     cp -ar /tmp/build-features-src/docker-outside-of-docker_1 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/docker-outside-of-docker_1  && cd /tmp/dev-container-features/docker-outside-of-docker_1  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/docker-outside-of-docker_1:
0.110 ===========================================================================
0.110 Feature       : Docker (docker-outside-of-docker)
0.110 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.110 Id            : ghcr.io/devcontainers/features/docker-outside-of-docker
0.110 Version       : 1.9.1
0.110 Documentation : https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker
0.110 Options       :
0.110     VERSION="latest"
0.110     MOBY="false"
0.110     MOBYBUILDXVERSION="latest"
0.110     DOCKERDASHCOMPOSEVERSION="latest"
0.110     INSTALLDOCKERBUILDX="true"
0.110     INSTALLDOCKERCOMPOSESWITCH="false"
0.110     SOCKETPATH="/var/run/docker-host.sock"
0.110 ===========================================================================
0.124 Updating certificates in /etc/ssl/certs...
0.601 0 added, 0 removed; done.
0.601 Running hooks in /etc/ca-certificates/update.d...
0.602 done.
0.604 (!) Unsupported distribution version 'resolute'. To resolve, please choose a compatible OS distribution
0.604 (!) Supported distributions include:  trixie bookworm buster bullseye bionic focal hirsute impish jammy noble plucky
0.605 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.
------
Dockerfile.extended:33
--------------------
  32 |     
  33 | >>> RUN --mount=type=bind,from=dev_containers_feature_content_source,source=docker-outside-of-docker_1,target=/tmp/build-features-src/docker-outside-of-docker_1 \
  34 | >>>     cp -ar /tmp/build-features-src/docker-outside-of-docker_1 /tmp/dev-container-features \
  35 | >>>  && chmod -R 0755 /tmp/dev-container-features/docker-outside-of-docker_1 \
  36 | >>>  && cd /tmp/dev-container-features/docker-outside-of-docker_1 \
  37 | >>>  && chmod +x ./devcontainer-features-install.sh \
  38 | >>>  && ./devcontainer-features-install.sh \
  39 | >>>  && rm -rf /tmp/dev-container-features/docker-outside-of-docker_1
  40 |     
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c cp -ar /tmp/build-features-src/docker-outside-of-docker_1 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/docker-outside-of-docker_1  && cd /tmp/dev-container-features/docker-outside-of-docker_1  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/docker-outside-of-docker_1" did not complete successfully: exit code: 1
[47351 ms] Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 --build-context dev_containers_feature_content_source=/tmp/devcontainercli-piqua/container-features/0.86.1-1779192870369 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/base:resolute --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -f /tmp/devcontainercli-piqua/container-features/0.86.1-1779192870369/Dockerfile.extended -t vsc-typescriptprime-ead8b7c396c5a4fc42f5e247e1016a8d96251dd79fa11efe216fdb2e2e312523-features /var/home/piqua/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder
[47351 ms]     at vV (/var/home/piqua/.vscode/extensions/ms-vscode-remote.remote-containers-0.459.0/dist/spec-node/devContainersSpecCLI.js:467:1277)
[47351 ms]     at cG (/var/home/piqua/.vscode/extensions/ms-vscode-remote.remote-containers-0.459.0/dist/spec-node/devContainersSpecCLI.js:467:1021)
[47351 ms]     at async A9 (/var/home/piqua/.vscode/extensions/ms-vscode-remote.remote-containers-0.459.0/dist/spec-node/devContainersSpecCLI.js:485:4649)
[47351 ms]     at async kI (/var/home/piqua/.vscode/extensions/ms-vscode-remote.remote-containers-0.459.0/dist/spec-node/devContainersSpecCLI.js:485:5768)
[47351 ms]     at async vZ (/var/home/piqua/.vscode/extensions/ms-vscode-remote.remote-containers-0.459.0/dist/spec-node/devContainersSpecCLI.js:666:205)
[47351 ms]     at async GZ (/var/home/piqua/.vscode/extensions/ms-vscode-remote.remote-containers-0.459.0/dist/spec-node/devContainersSpecCLI.js:665:15080)
[47351 ms]     at async /var/home/piqua/.vscode/extensions/ms-vscode-remote.remote-containers-0.459.0/dist/spec-node/devContainersSpecCLI.js:485:1917
[47359 ms] Exit code 1
[47361 ms] Command failed: /usr/share/code/code /var/home/piqua/.vscode/extensions/ms-vscode-remote.remote-containers-0.459.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /var/home/piqua/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-3eabb1a2-7f2c-4700-8db0-a1df6fbd293d1779192868399 --workspace-folder /var/home/piqua/repos/TypescriptPrime --workspace-mount-consistency cached --gpu-availability detect --id-label devcontainer.local_folder=/var/home/piqua/repos/TypescriptPrime --id-label devcontainer.config_file=/var/home/piqua/repos/TypescriptPrime/.devcontainer/devcontainer.json --log-level debug --log-format json --config /var/home/piqua/repos/TypescriptPrime/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --experimental-lockfile --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root --include-configuration --include-merged-configuration

devcontainer.json content

// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
	"name": "Typescript",
	// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
	"image": "mcr.microsoft.com/devcontainers/base:resolute",
	"features": {
		"ghcr.io/devcontainers/features/node:1": {
			"version": "lts"
		},
		"ghcr.io/devcontainers-extra/features/act:1": {},
		"ghcr.io/devcontainers-extra/features/npm-package:1": {},
		"ghcr.io/devcontainers-extra/features/typescript:2": {}
	},
	"remoteUser": "root",
	"mounts": [
		"source=/run/media/piqua/data0/PackageCache/pnpm,target=/pnpm-store,type=bind"
  	],
	"postCreateCommand": "npm i -g pnpm && pnpm config set store-dir /pnpm-store"
}

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions