devcontainers / devcontainers/features

Issues using docker-outside-of-docker

Open
#1,351 3 comments 1 reaction 2 assignees Claimed by @sireeshajonnalagadda View on GitHub
Dominant language
Shell
Stars
1.5k
Forks
621
Avg merge
2d 11h
Merged PRs (30d)
4

Description

Hi team, In my `devcontainer.json` file, I'm using

```json
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
},
```

When I try to do "Repoen in Containr" (with the devcontainer VSCode plugin), it fails when trying to build the image with the following error

```console
[2025-04-29T11:41:43.004Z] [2/2] STEP 6/9: 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,z 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
[2025-04-29T11:41:43.871Z] ERRO[0002] did not get container create message from subprocess: EOF
[2025-04-29T11:41:43.935Z] error running container: from /usr/bin/runc creating container for [/bin/sh -c 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]: time="2025-04-29T12:41:43+01:00" level=warning msg="unable to get oom kill count" error="no directory specified for memory.oom_control"
time="2025-04-29T12:41:43+01:00" level=error msg="runc create failed: unable to start container process: error during container init: error mounting \"/var/tmp/buildah1737055232/mnt/buildah-bind-target-12\" to rootfs at \"/tmp/build-features-src/docker-outside-of-docker_0\": mount /var/tmp/buildah1737055232/mnt/buildah-bind-target-12:/tmp/build-features-src/docker-outside-of-docker_0 (via /proc/self/fd/6), flags: 0x5021: operation not permitted"
: exit status 1
```

OS: RHEL8
Container Runtime: Podman

I have confirmed that this problem does not occur using MacOS and Podman
Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.