Skip to content

google-cloud-cli fails to download / install #38

Description

@alexsapps

Hi,

I tried to set up a devcontainer that uses the feature "ghcr.io/dhoeric/features/google-cloud-cli:1". I tried 3 times in a row and it failed each time. Here's the logs from the last time I tried it:

 => CACHED [dev_containers_target_stage 6/7] RUN --mount=type=bind,from=d  0.0s
 => ERROR [dev_containers_target_stage 7/7] RUN --mount=type=bind,from=de  6.6s
------
 > [dev_containers_target_stage 7/7] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=google-cloud-cli_2,target=/tmp/build-features-src/google-cloud-cli_2     cp -ar /tmp/build-features-src/google-cloud-cli_2 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/google-cloud-cli_2  && cd /tmp/dev-container-features/google-cloud-cli_2  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/google-cloud-cli_2:
0.213 ===========================================================================
0.213 Feature       : Google Cloud CLI
0.213 Description   : Install google-cloud-cli902053339746712109
0.213 Id            : ghcr.io/dhoeric/features/google-cloud-cli
0.213 Version       : 1.0.1
0.213 Documentation : https://github.com/dhoeric/features/tree/main/src/google-cloud-cli
0.213 Options       :
0.213     VERSION="latest"
0.213     INSTALLGKEGCLOUDAUTHPLUGIN="false"
0.213 ===========================================================================
0.222 (*) Installing google-cloud CLI...
0.248   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[2025-11-09T07:51:53.955Z] 0.248                                  Dload  Upload   Total   Spent    Left  Speed
0.248 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
0.868 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
6.512 curl: (52) Empty reply from server
6.516 gpg: no valid OpenPGP data found.
6.529 ERROR: Feature "Google Cloud CLI" (ghcr.io/dhoeric/features/google-cloud-cli) failed to install! Look at the documentation at https://github.com/dhoeric/features/tree/main/src/google-cloud-cli for help troubleshooting this error.
------
[2025-11-09T07:51:53.964Z] ERROR: failed to build: failed to solve: process "/bin/sh -c cp -ar /tmp/build-features-src/google-cloud-cli_2 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/google-cloud-cli_2  && cd /tmp/dev-container-features/google-cloud-cli_2  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/google-cloud-cli_2" did not complete successfully: exit code: 2

View build details: �]8;;docker-desktop://dashboard/build/desktop-linux/desktop-linux/uhxpfs62m1m959qkpy1u2zqqr�\docker-desktop://dashboard/build/desktop-linux/desktop-linux/uhxpfs62m1m959qkpy1u2zqqr�]8;;�\
[2025-11-09T07:51:53.974Z] Stop (11410 ms): Run: docker buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-ajt/container-features/0.80.1-1762674634754 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/base:bullseye --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-ajt/container-features/0.80.1-1762674634754/Dockerfile.extended -t vsc-petitions-7dfb1c4c67ad29c5db7a0092299083ac0c64a10806f219a43237cba78c7605d6-features /home/ajt/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder
[2025-11-09T07:51:53.975Z] Error: Command failed: docker buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-ajt/container-features/0.80.1-1762674634754 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/base:bullseye --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-ajt/container-features/0.80.1-1762674634754/Dockerfile.extended -t vsc-petitions-7dfb1c4c67ad29c5db7a0092299083ac0c64a10806f219a43237cba78c7605d6-features /home/ajt/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder
[2025-11-09T07:51:53.975Z]     at w6 (/home/ajt/.vscode/extensions/ms-vscode-remote.remote-containers-0.427.0/dist/spec-node/devContainersSpecCLI.js:467:1253)
[2025-11-09T07:51:53.975Z]     at ax (/home/ajt/.vscode/extensions/ms-vscode-remote.remote-containers-0.427.0/dist/spec-node/devContainersSpecCLI.js:467:997)
[2025-11-09T07:51:53.975Z]     at async Y6 (/home/ajt/.vscode/extensions/ms-vscode-remote.remote-containers-0.427.0/dist/spec-node/devContainersSpecCLI.js:484:3842)
[2025-11-09T07:51:53.975Z]     at async BC (/home/ajt/.vscode/extensions/ms-vscode-remote.remote-containers-0.427.0/dist/spec-node/devContainersSpecCLI.js:484:4957)
[2025-11-09T07:51:53.975Z]     at async p7 (/home/ajt/.vscode/extensions/ms-vscode-remote.remote-containers-0.427.0/dist/spec-node/devContainersSpecCLI.js:665:202)
[2025-11-09T07:51:53.975Z]     at async d7 (/home/ajt/.vscode/extensions/ms-vscode-remote.remote-containers-0.427.0/dist/spec-node/devContainersSpecCLI.js:664:14804)
[2025-11-09T07:51:53.975Z]     at async /home/ajt/.vscode/extensions/ms-vscode-remote.remote-containers-0.427.0/dist/spec-node/devContainersSpecCLI.js:484:1188
[2025-11-09T07:51:53.985Z] Stop (79502 ms): Run: /usr/share/code/code /home/ajt/.vscode/extensions/ms-vscode-remote.remote-containers-0.427.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/ajt/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-556ae1f5-27a4-4a17-828d-54f12b3ec7971762674633558 --workspace-folder /home/ajt/git/dxe/petitions --workspace-mount-consistency cached --gpu-availability detect --id-label devcontainer.local_folder=/home/ajt/git/dxe/petitions --id-label devcontainer.config_file=/home/ajt/git/dxe/petitions/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/ajt/git/dxe/petitions/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --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
[2025-11-09T07:51:53.986Z] Exit code 1
[2025-11-09T07:51:53.993Z] Command failed: /usr/share/code/code /home/ajt/.vscode/extensions/ms-vscode-remote.remote-containers-0.427.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/ajt/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-556ae1f5-27a4-4a17-828d-54f12b3ec7971762674633558 --workspace-folder /home/ajt/git/dxe/petitions --workspace-mount-consistency cached --gpu-availability detect --id-label devcontainer.local_folder=/home/ajt/git/dxe/petitions --id-label devcontainer.config_file=/home/ajt/git/dxe/petitions/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/ajt/git/dxe/petitions/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --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
[2025-11-09T07:51:53.993Z] Exit code 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions