-
Notifications
You must be signed in to change notification settings - Fork 583
Open
Description
Hello,
I am trying to create a Codespace with the desktop-lite feature.
My .devcontainer file is below:
{
"features": {
"ghcr.io/devcontainers/features/desktop-lite": {
"password" : "noPassword"
}
},
"customizations": {
"vscode": {
"extensions": [
"DavidAnson.vscode-markdownlint",
"docker.docker",
"GitHub.copilot",
"GitHub.copilot-chat",
"george-alisson.html-preview-vscode",
"ms-azuretools.vscode-docker",
"ms-python.vscode-pylance",
"ms-python.python",
"ms-python.debugpy",
"ms-python.vscode-python-envs"
]
}
},
"forwardPorts": [5901, 6080],
"portsAttributes": {
"5901": {
"label": "vnc"
},
"6080": {
"label": "desktop"
}
}
}The following is devcontainer creation output:
Configuration starting...
Cloning...
Using image: mcr.microsoft.com/devcontainers/universal
Creating container...
$ devcontainer up --id-label Type=codespaces --workspace-folder /var/lib/docker/codespacemount/workspace/network-forensics-labs --mount type=bind,source=/.codespaces/agent/mount/cache,target=/vscode --user-data-folder /var/lib/docker/codespacemount/.persistedshare --container-data-folder .vscode-remote/data/Machine --container-system-data-folder /var/vscode-remote --log-level trace --log-format json --update-remote-user-uid-default never --mount-workspace-git-root false --omit-config-remote-env-from-metadata --skip-non-blocking-commands --skip-post-create --config "/var/lib/docker/codespacemount/workspace/network-forensics-labs/.devcontainer/devcontainer.json" --override-config /root/.codespaces/shared/merged_devcontainer.json --default-user-env-probe loginInteractiveShell --container-session-data-folder /workspaces/.codespaces/.persistedshare/devcontainers-cli/cache --secrets-file /root/.codespaces/shared/user-secrets-envs.json
[152 ms] @devcontainers/cli 0.80.3. Node.js v18.20.6. linux 6.8.0-1030-azure x64.
[316 ms] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/desktop-lite'...
[1291 ms] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required. Removing from installation order...
[1747 ms] Files to omit: ''
[1763 ms] Start: Run: docker buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.80.3-1771907577328 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/universal:5 --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-root/container-features/0.80.3-1771907577328/Dockerfile.extended -t vsc-network-forensics-labs-c59ae12963635a5def109262cd3f1d02707b9701650465d8c0515983945ace45-features /var/lib/docker/codespacemount/.persistedshare/empty-folder
#0 building with "default" instance using docker driver
#1 [internal] load build definition from Dockerfile.extended
#1 transferring dockerfile: 6.27kB done
#1 DONE 0.0s
#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s
#3 [internal] load metadata for mcr.microsoft.com/devcontainers/universal:5
#3 DONE 0.0s
#4 [context dev_containers_feature_content_source] load .dockerignore
#4 transferring dev_containers_feature_content_source: 2B done
#4 DONE 0.0s
#5 [context dev_containers_feature_content_source] load from client
#5 transferring dev_containers_feature_content_source: 67.12kB done
#5 DONE 0.0s
#6 [dev_containers_feature_content_normalize 1/3] FROM mcr.microsoft.com/devcontainers/universal:5
#6 DONE 0.2s
#7 [dev_containers_feature_content_normalize 2/3] COPY --from=dev_containers_feature_content_source devcontainer-features.builtin.env /tmp/build-features/
#7 DONE 0.0s
#8 [dev_containers_feature_content_normalize 3/3] RUN chmod -R 0755 /tmp/build-features/
#8 ...
#9 [dev_containers_target_stage 2/5] RUN mkdir -p /tmp/dev-container-features
#9 DONE 0.3s
#8 [dev_containers_feature_content_normalize 3/3] RUN chmod -R 0755 /tmp/build-features/
#8 DONE 0.2s
#10 [dev_containers_target_stage 3/5] COPY --from=dev_containers_feature_content_normalize /tmp/build-features/ /tmp/dev-container-features
#10 DONE 0.0s
#11 [dev_containers_target_stage 4/5] RUN echo "_CONTAINER_USER_HOME=$( (command -v getent >/dev/null 2>&1 && getent passwd 'codespace' || grep -E '^codespace|^[^:]*:[^:]*:codespace:' /etc/passwd || ********) | cut -d: -f6)" >> /tmp/dev-container-features/devcontainer-features.builtin.env && echo "_REMOTE_USER_HOME=$( (command -v getent >/dev/null 2>&1 && getent passwd 'codespace' || grep -E '^codespace|^[^:]*:[^:]*:codespace:' /etc/passwd || ********) | cut -d: -f6)" >> /tmp/dev-container-features/devcontainer-features.builtin.env
#11 DONE 0.2s
#12 [dev_containers_target_stage 5/5] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=desktop-lite_0,target=/tmp/build-features-src/desktop-lite_0 cp -ar /tmp/build-features-src/desktop-lite_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/desktop-lite_0 && cd /tmp/dev-container-features/desktop-lite_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/desktop-lite_0
#12 0.145 ===========================================================================
#12 0.145 Feature : Light-weight Desktop
#12 0.145 Description : Adds a lightweight Fluxbox based desktop to the container that can be accessed using a VNC viewer or the web. GUI-based commands executed from the built-in VS code terminal will open on the desktop automatically.
#12 0.145 Id : ghcr.io/devcontainers/features/desktop-lite
#12 0.145 Version : 1.2.8
#12 0.145 Documentation : ********/devcontainers/features/tree/main/src/desktop-lite
#12 0.145 Options :
#12 0.145 VERSION="latest"
#12 0.145 NOVNCVERSION="1.6.0"
#12 0.145 PASSWORD="noPassword"
#12 0.145 WEBPORT="6080"
#12 0.145 VNCPORT="5901"
#12 0.145 ===========================================================================
#12 0.166 find: ‘/var/lib/apt/lists/*’: No such file or directory
#12 0.167 Running apt-get update...
#12 1.078 Get:1 https://dl.yarnpkg.com/debian stable InRelease
#12 1.211 Err:1 https://dl.yarnpkg.com/debian stable InRelease
#12 1.211 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 62D54FD4003F6525
#12 1.268 Get:2 https://packages.microsoft.com/repos/microsoft-ubuntu-noble-prod noble InRelease [3600 B]
#12 1.301 Get:3 https://repo.anaconda.com/pkgs/misc/debrepo/conda stable InRelease [3961 B]
#12 1.317 Get:4 https://packages.microsoft.com/repos/microsoft-ubuntu-noble-prod noble/main amd64 Packages [94.8 kB]
#12 1.329 Get:5 https://packages.microsoft.com/repos/microsoft-ubuntu-noble-prod noble/main all Packages [643 B]
#12 1.411 Get:6 https://repo.anaconda.com/pkgs/misc/debrepo/conda stable/main amd64 Packages [4557 B]
#12 1.794 Get:7 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
#12 2.042 Get:8 http://archive.ubuntu.com/ubuntu noble InRelease [256 kB]
#12 3.026 Get:9 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Packages [34.8 kB]
#12 3.344 Get:10 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [1208 kB]
#12 3.521 Get:11 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
#12 3.885 Get:12 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
#12 4.251 Get:13 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages [19.3 MB]
#12 4.290 Get:14 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [3209 kB]
#12 4.772 Get:15 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [1861 kB]
#12 6.362 Get:16 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages [1808 kB]
#12 6.449 Get:17 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Packages [331 kB]
#12 6.467 Get:18 http://archive.ubuntu.com/ubuntu noble/restricted amd64 Packages [117 kB]
#12 6.472 Get:19 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [3409 kB]
#12 6.692 Get:20 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [2253 kB]
#12 6.838 Get:21 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages [38.1 kB]
#12 6.841 Get:22 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [2016 kB]
#12 6.964 Get:23 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Packages [49.5 kB]
#12 6.966 Get:24 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [34.6 kB]
#12 7.320 Reading package lists...
#12 8.196 W: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 62D54FD4003F6525
#12 8.196 E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed.
#12 8.197 ERROR: Feature "Light-weight Desktop" (ghcr.io/devcontainers/features/desktop-lite) failed to install! Look at the documentation at ********/devcontainers/features/tree/main/src/desktop-lite for help troubleshooting this error.
#12 ERROR: process "/bin/sh -c cp -ar /tmp/build-features-src/desktop-lite_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/desktop-lite_0 && cd /tmp/dev-container-features/desktop-lite_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/desktop-lite_0" did not complete successfully: exit code: 100
------
> [dev_containers_target_stage 5/5] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=desktop-lite_0,target=/tmp/build-features-src/desktop-lite_0 cp -ar /tmp/build-features-src/desktop-lite_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/desktop-lite_0 && cd /tmp/dev-container-features/desktop-lite_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/desktop-lite_0:
6.472 Get:19 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [3409 kB]
6.692 Get:20 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [2253 kB]
6.838 Get:21 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages [38.1 kB]
6.841 Get:22 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [2016 kB]
6.964 Get:23 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Packages [49.5 kB]
6.966 Get:24 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [34.6 kB]
8.196 W: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 62D54FD4003F6525
8.196 E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed.
8.197 ERROR: Feature "Light-weight Desktop" (ghcr.io/devcontainers/features/desktop-lite) failed to install! Look at the documentation at ********/devcontainers/features/tree/main/src/desktop-lite for help troubleshooting this error.
------
Dockerfile.extended:24
--------------------
23 | ENV DISPLAY=":1"
24 | >>> RUN --mount=type=bind,from=dev_containers_feature_content_source,source=desktop-lite_0,target=/tmp/build-features-src/desktop-lite_0 \
25 | >>> cp -ar /tmp/build-features-src/desktop-lite_0 /tmp/dev-container-features \
26 | >>> && chmod -R 0755 /tmp/dev-container-features/desktop-lite_0 \
27 | >>> && cd /tmp/dev-container-features/desktop-lite_0 \
28 | >>> && chmod +x ./devcontainer-features-install.sh \
29 | >>> && ./devcontainer-features-install.sh \
30 | >>> && rm -rf /tmp/dev-container-features/desktop-lite_0
31 |
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c cp -ar /tmp/build-features-src/desktop-lite_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/desktop-lite_0 && cd /tmp/dev-container-features/desktop-lite_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/desktop-lite_0" did not complete successfully: exit code: 100
[10548 ms] Stop: Run: docker buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.80.3-1771907577328 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/universal:5 --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-root/container-features/0.80.3-1771907577328/Dockerfile.extended -t vsc-network-forensics-labs-c59ae12963635a5def109262cd3f1d02707b9701650465d8c0515983945ace45-features /var/lib/docker/codespacemount/.persistedshare/empty-folder
Error: Command failed: docker buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.80.3-1771907577328 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/universal:5 --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-root/container-features/0.80.3-1771907577328/Dockerfile.extended -t vsc-network-forensics-labs-c59ae12963635a5def109262cd3f1d02707b9701650465d8c0515983945ace45-features /var/lib/docker/codespacemount/.persistedshare/empty-folder
{"outcome":"error","message":"Command failed: docker buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.80.3-1771907577328 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/universal:5 --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-root/container-features/0.80.3-1771907577328/Dockerfile.extended -t vsc-network-forensics-labs-c59ae12963635a5def109262cd3f1d02707b9701650465d8c0515983945ace45-features /var/lib/docker/codespacemount/.persistedshare/empty-folder","description":"An error occurred setting up the container."}
at y6 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:467:1253)
at Cx (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:467:997)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async P6 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:485:3842)
at async CC (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:485:4957)
at async w7 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:666:202)
at async D7 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:665:14804)
at async /.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:485:1188
devcontainer process exited with exit code 1
Failed to create container.
Error: Command failed: docker buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.80.3-1771907577328 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/universal:5 --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-root/container-features/0.80.3-1771907577328/Dockerfile.extended -t vsc-network-forensics-labs-c59ae12963635a5def109262cd3f1d02707b9701650465d8c0515983945ace45-features /var/lib/docker/codespacemount/.persistedshare/empty-folder
Error code: 1302 (UnifiedContainersErrorFatalCreatingContainer)
Container creation failed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels