microsoft / microsoft/vscode-remote-release
can't use dev container offline
Open
@chrmarti is already working on this.
Since Aug 17, 2024.
containers
feature-request
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 469
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
I'm always on the travel, and whenever I'm on travel and want to use my devcontainer the annoying inspect command fails to let an image that already available on my machine run. this behavior contradict with the purpose of a container for development.
here is the log
[28853 ms] Start: Run: docker inspect --type image mcr.microsoft.com/devcontainers/typescript-node:1-22-bullseye
[38885 ms] Error fetching image details: getaddrinfo EAI_AGAIN mcr.microsoft.com
[38886 ms] Start: Run: docker pull mcr.microsoft.com/devcontainers/typescript-node:1-22-bullseye
Error response from daemon: Get "https://mcr.microsoft.com/v2/": dialing mcr.microsoft.com:443 container via direct connection because has no HTTPS proxy: resolving host mcr.microsoft.com: lookup mcr.microsoft.com: no such host
[49177 ms] []
[49177 ms] Error response from daemon: No such image: mcr.microsoft.com/devcontainers/typescript-node:1-22-bullseye
[49178 ms] Error: Command failed: docker inspect --type image mcr.microsoft.com/devcontainers/typescript-node:1-22-bullseye
[49178 ms] at utA (/home/me-wsl-ubuntu/.vscode-remote-containers/dist/dev-containers-cli-0.380.0/dist/spec-node/devContainersSpecCLI.js:410:3925)
[49178 ms] at async KtA (/home/me-wsl-ubuntu/.vscode-remote-containers/dist/dev-containers-cli-0.380.0/dist/spec-node/devContainersSpecCLI.js:482:3944)
[49178 ms] at async eB (/home/me-wsl-ubuntu/.vscode-remote-containers/dist/dev-containers-cli-0.380.0/dist/spec-node/devContainersSpecCLI.js:482:4886)
[49178 ms] at async hrA (/home/me-wsl-ubuntu/.vscode-remote-containers/dist/dev-containers-cli-0.380.0/dist/spec-node/devContainersSpecCLI.js:663:200)
[49178 ms] at async lrA (/home/me-wsl-ubuntu/.vscode-remote-containers/dist/dev-containers-cli-0.380.0/dist/spec-node/devContainersSpecCLI.js:662:13452)
[49182 ms] Exit code 1
[49183 ms] Command failed: /home/me-wsl-ubuntu/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/node /home/me-wsl-ubuntu/.vscode-remote-containers/dist/dev-containers-cli-0.380.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-39052ba1-5800-4957-8a44-73151d8d99941723878744611 --workspace-folder /home/me-wsl-ubuntu/thetutr/t1 --workspace-mount-consistency cached --id-label devcontainer.local_folder=\\wsl.localhost\Ubuntu\home\me-wsl-ubuntu\thetutr\t1 --id-label devcontainer.config_file=/home/me-wsl-ubuntu/thetutr/t1/.devcontainer/frontend-container/devcontainer.json --log-level debug --log-format json --config /home/me-wsl-ubuntu/thetutr/t1/.devcontainer/frontend-container/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=/run/user/1000/wayland-0,target=/tmp/vscode-wayland-c739e546-90e1-48b4-b14a-acec85b609fb.sock --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root --include-configuration --include-merged-configuration
[49183 ms] Exit code 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.