microsoft / microsoft/vscode-remote-release

Can't resolve container features from ghcr.io

Open
#8,852 1 comment 0 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Aug 29, 2023.

bug containers proxy
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

I cannot install features in my dev containers if they're from ghcr.io. I have no problem installing locally created features, but it always fails with an an ENOTFOUND error when trying resolve ghcr.io. I should note that I'm behind a corporate proxy. Seems to work fine at home, but I don't know what needs to be set for the feature not to fail.

  • VSCode Version: 1.81.1

  • Local OS Version: Windows 10

  • Remote OS Version: Ubuntu

  • Remote Extension/Connection Type: Containers

  • Logs:

[2238736 ms] --- Processing User Features ----
[2238737 ms] [* user-provided] ghcr.io/devcontainers/features/docker-outside-of-docker:1.3.0
[2238737 ms] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/docker-outside-of-docker:1.3.0'...
[2238738 ms] * Processing feature: ghcr.io/devcontainers/features/docker-outside-of-docker:1.3.0
[2238738 ms] > input: ghcr.io/devcontainers/features/docker-outside-of-docker:1.3.0
[2238739 ms] >
[2238739 ms] > resource: ghcr.io/devcontainers/features/docker-outside-of-docker
[2238739 ms] > id: docker-outside-of-docker
[2238739 ms] > owner: devcontainers
[2238739 ms] > namespace: devcontainers/features
[2238739 ms] > registry: ghcr.io
[2238739 ms] > path: devcontainers/features/docker-outside-of-docker
[2238739 ms] >
[2238739 ms] > version: 1.3.0
[2238739 ms] > tag?: 1.3.0
[2238739 ms] > digest?: undefined
[2238739 ms] manifest url: https://ghcr.io/v2/devcontainers/features/docker-outside-of-docker/manifests/1.3.0
[2238766 ms] Error: getaddrinfo ENOTFOUND ghcr.io
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26)

devcontainer.json

{
    "name": "UbuntuCert",
    "build": {
        "dockerfile": "Dockerfile"
    },

    "runArgs": ["--init"],

    "containerEnv": {
        "NODE_EXTRA_CA_CERTS": "/etc/ssl/certs/ca-certificates.crt"
    },

    "features": {
        "ghcr.io/devcontainers/features/docker-outside-of-docker:1.3.0": {}
    },

    "customizations": {
        "vscode": {
            "extensions": [
				"ms-azuretools.vscode-docker",
				"GitHub.vscode-pull-request-github"
			]
        }
    }
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.