Skip to content

Unable to install the Azure CLI via features #1096

@Andomeda83

Description

@Andomeda83

I'm using Podman Desktop 1.22 on Windows with a WSL v2 podman machine.

I started off using devcontainers inside vscode, but I'm getting the same error when using the devcontainers cli.

If I include the feature in my devcontainer.json:

"features": {
    "ghcr.io/devcontainers/features/azure-cli:1": {}
  }

I get this error when trying to build the container:

> devcontainer.cmd build --docker-path "C:\Program Files\RedHat\Podman\podman.exe" --workspace-folder .
[13 ms] @devcontainers/cli 0.80.1. Node.js v22.20.0. win32 10.0.26100 x64.
[1279 ms] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/azure-cli:1'...
[2126 ms] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required.  Removing from installation order...
[2445 ms] [httpOci] ERR: Server did not provide instructions to authentiate! (Required: A 'WWW-Authenticate' Header)
[2445 ms] Request failed
[2445 ms] (!) ERR: Failed to fetch feature: Failed to download package for ghcr.io/devcontainers/features/azure-cli
Error: Failed to download package for ghcr.io/devcontainers/features/azure-cli
    at ZI (C:\Users\andomeda83\AppData\Local\nvm\v22.20.0\node_modules\@devcontainers\cli\dist\spec-node\devContainersSpecCLI.js:287:3957)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async KX (C:\Users\andomeda83\AppData\Local\nvm\v22.20.0\node_modules\@devcontainers\cli\dist\spec-node\devContainersSpecCLI.js:393:5401)
    at async Pu (C:\Users\andomeda83\AppData\Local\nvm\v22.20.0\node_modules\@devcontainers\cli\dist\spec-node\devContainersSpecCLI.js:392:1995)
    at async gC (C:\Users\andomeda83\AppData\Local\nvm\v22.20.0\node_modules\@devcontainers\cli\dist\spec-node\devContainersSpecCLI.js:395:2283)
    at async Vu (C:\Users\andomeda83\AppData\Local\nvm\v22.20.0\node_modules\@devcontainers\cli\dist\spec-node\devContainersSpecCLI.js:395:282)
    at async k7 (C:\Users\andomeda83\AppData\Local\nvm\v22.20.0\node_modules\@devcontainers\cli\dist\spec-node\devContainersSpecCLI.js:667:3505)
    at async R7 (C:\Users\andomeda83\AppData\Local\nvm\v22.20.0\node_modules\@devcontainers\cli\dist\spec-node\devContainersSpecCLI.js:666:4937)
    at async C:\Users\andomeda83\AppData\Local\nvm\v22.20.0\node_modules\@devcontainers\cli\dist\spec-node\devContainersSpecCLI.js:484:1188
{"outcome":"error","message":"Failed to download package for ghcr.io/devcontainers/features/azure-cli","description":"An error occurred building the container."}

I've tried authentication against ghrc.io via podman login ghrc.io and that doesn't make a difference.

Is there anything else I should try?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions