My vscode developer container is failing to launch. The container builds fine but at the last step when vscode is adding in a 'feature' the mount for that step fails.
I'm using latest releases of everything on ubuntu:
- ubuntu 24.10
- podman 5.0.3
- vscode 1.98.2
- devcontainers 401.0
This same container builds fine on a second machine with the same setup as above. I'm unable to tell what differences there are.
The error looks like this:
[6/6] STEP 8/13: RUN --mount=type=bind,from=dev_containers_feature_content_source,source=bash-config_0,target=/tmp/build-features-src/bash-config_0,z cp -ar /tmp/build-features-src/bash-config_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/bash-config_0 && cd /tmp/dev-container-features/bash-config_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/bash-config_0
error running container: from /usr/bin/runc creating container for [/bin/sh -c cp -ar /tmp/build-features-src/bash-config_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/bash-config_0 && cd /tmp/dev-container-features/bash-config_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/bash-config_0]: time="2025-03-26T07:06:12Z" level=error msg="runc create failed: invalid mount &{Source:/var/tmp/buildah2339991715/mnt/buildah-bind-target-11 Destination:/tmp/build-features-src/bash-config_0 Device:bind Flags:20481 ClearedFlags:0 PropagationFlags:[262144] Data:z Relabel: RecAttr:<nil> Extensions:0 IDMapping:<nil>}: bind mounts cannot have any filesystem-specific options applied"
: exit status 1
ERRO[0628] did not get container create message from subprocess: EOF
Error: building at STEP "RUN --mount=type=bind,from=dev_containers_feature_content_source,source=bash-config_0,target=/tmp/build-features-src/bash-config_0,z cp -ar /tmp/build-features-src/bash-config_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/bash-config_0 && cd /tmp/dev-container-features/bash-config_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/bash-config_0": while running runtime: exit status 1
[639106 ms] Error: Command failed: podman buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-giles/container-features/0.73.0-1742972142924/Dockerfile-with-features -t vsc-ioc-adsimdetector-b27c7da53557323dc3e141f3bd4505c58e95c399df850f35cce5c7fd67c2c553 --target dev_containers_target_stage --build-arg EPICS_TARGET_ARCH=linux-x86_64 --build-context dev_containers_feature_content_source=/tmp/devcontainercli-giles/container-features/0.73.0-1742972142924 --build-arg _DEV_CONTAINERS_BASE_IMAGE=developer --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /home/giles/code/ioc-adsimdetector
[639106 ms] at RtA (/home/giles/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/spec-node/devContainersSpecCLI.js:469:1933)
[639106 ms] at async jm (/home/giles/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/spec-node/devContainersSpecCLI.js:468:1896)
[639107 ms] at async bH (/home/giles/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/spec-node/devContainersSpecCLI.js:468:610)
[639107 ms] at async TtA (/home/giles/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/spec-node/devContainersSpecCLI.js:485:3848)
[639107 ms] at async iB (/home/giles/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/spec-node/devContainersSpecCLI.js:485:4963)
[639108 ms] at async wrA (/home/giles/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/spec-node/devContainersSpecCLI.js:666:203)
[639108 ms] at async DrA (/home/giles/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/spec-node/devContainersSpecCLI.js:665:14830)
[639108 ms] at async /home/giles/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/spec-node/devContainersSpecCLI.js:485:1190
[639127 ms] Exit code 1
[639139 ms] Command failed: /usr/share/code/code /home/giles/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/giles/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --docker-path podman --container-session-data-folder /tmp/devcontainers-57d106e3-fdce-4527-bdb5-082c65834f2c1742972132396 --workspace-folder /home/giles/code/ioc-adsimdetector --workspace-mount-consistency cached --gpu-availability detect --id-label devcontainer.local_folder=/home/giles/code/ioc-adsimdetector --id-label devcontainer.config_file=/home/giles/code/ioc-adsimdetector/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/giles/code/ioc-adsimdetector/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --remove-existing-container --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root --include-configuration --include-merged-configuration
[639140 ms] Exit code 1