msfz751
(msfz751)
May 20, 2024, 1:06am
1
I am running a layered installed vscode.
When I try to create a DevContainer I am getting an error related to this file devContainersSpecCLI.js
. I have looked in the internet but I haven’t found a solution.
I have tried in different ways possible: providing docker to DevContainers Docker Path, podman, a script with docker, etc.
This is a screenshot of the error:
The full path to which the error refers is
/root/.vscode-remote-containers/dist/dev-containers-cli-0.362.0/dist/spec-node/devContainersSpecCLI.js
I have tried with several of the DevContainer examples that pop up when you choose “New DevContainer”, and all of them throw error.
Has anyone had a problem like this?
My OS is a fresh Fedora Silverblue 40 installation.
1 Like
You really should not be running such apps when logged in as root
.
Many problems can occur since the privileges of root allow changes in the system that even the ‘atomic’ desktop may not prevent.
I suggest that you use only your regular user and only use root privileges when absolutely necessary. This is the standard paradigm used for all linux systems and how they are administered.
msfz751
(msfz751)
May 20, 2024, 2:54pm
3
No, I am not running it as root, just like a regular user.
The root label comes from inside the debugging console in vscode.
From what I am learning from the GitHub issues posts is that vscode DevContainers use internally that convention. That root label could be created under a /tmp
folder, for instance. root just means it is the top of the tree. It doesn’t mean at all the Linux root user.
Strange, this could be an issue, as Podman may see it as if you would like to create a rootful container.
Is there any way for you to paste the error here in </> preformatted text ?
job79
(Job79)
May 20, 2024, 3:52pm
6
Does attaching to exiting containers in the sidebar work? Or is it only dev containers that are broken?
1 Like
msfz751
(msfz751)
May 20, 2024, 4:02pm
7
I haven’t tested with existing Devcontainers. I thought it was going to be easier and faster just creating a typical DevContainer from the selection MS offers. As a matter of fact, I was testing after I figured it out how to integrate layered-vscode with Distrobox containers. But the issues are totally unrelated.
What is surprising though is that most of the examples fail - the one I am focusing is the one that says “Data Science with Python and R” - but couple of them, that are simple, like the one at the top, based on Alpine, build fine sometimes.
I’d like to have a look at the error message, it just a little hard to follow, and would be better than me spinning up a VM, and recreating this myself. If you can.
msfz751
(msfz751)
May 20, 2024, 4:08pm
9
I am not at my desk now. I only have screenshots available in my iPad.
1 Like
No problem. Will still have a look at it. Might update this response with a couple questions later.
msfz751
(msfz751)
May 20, 2024, 4:09pm
11
hammerhead corvette:
I’d like to have a look at the error message, it just a little hard to follow, and would be better than me spinning up a VM, and recreating this myself. If you can.
Sure. My pleasure. Thanks.
Just give me some time.
This error is a recurring issues in VS Code with DevContainer as far as 2022.
Related Issues
opened 12:09PM - 22 May 23 UTC
closed 09:28AM - 01 Jun 23 UTC
containers
info-needed
- VSCode Version: 1.78.2 (user setup)
- Local OS Version: Windows_NT x64 10.0.2… 2621
- Remote OS Version: Debian bullseye
- Remote Extension/Connection Type: Containers
- Logs:
```
[17 ms] Dev Containers 0.292.0 in VS Code 1.78.2 (b3e4e68a0bc097f0ae7907b217c1119af9e03435).
[16 ms] Start: Resolving Remote
[32 ms] Start: Run: wsl -l -v
[137 ms] Start: Run: wsl -d docker-desktop-data -e /bin/sh -c echo ~
[304 ms] Could not connect to WSL.
[304 ms] Command failed: wsl -d docker-desktop-data -e /bin/sh -c echo ~
[305 ms]
[305 ms] <3>WSL (42) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (42) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (42) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (42) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
[307 ms] Start: Check Docker is running
[307 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[480 ms] Server API version: 1.42
[482 ms] Start: Run: docker volume ls -q
[651 ms] Start: Run: docker build -f C:\Users\nasso\AppData\Local\Temp\vsch\bootstrap-image\0.292.0\bootstrap.Dockerfile -t vsc-volume-bootstrap C:\Users\nasso\AppData\Local\Temp\vsch\bootstrap-image\0.292.0
[+] Building 0.1s (10/10) FINISHED
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from bootstrap.Dockerfile 0.0s
=> => transferring dockerfile: 570B 0.0s
=> [internal] load metadata for mcr.microsoft.com/devcontainers/base:0-a 0.0s
=> [1/5] FROM mcr.microsoft.com/devcontainers/base:0-alpine-3.16 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 782B 0.0s
=> CACHED [2/5] RUN echo "@old https://dl-cdn.alpinelinux.org/alpine/v3. 0.0s
=> CACHED [3/5] RUN apk add --no-cache git-lfs nodejs python3 npm m 0.0s
=> CACHED [4/5] RUN cd && npm i node-pty 0.0s
=> CACHED [5/5] COPY .vscode-remote-containers /root/.vscode-remote-cont 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:80979c0613b893fc4c9772c38dabbbc039c73572ab316 0.0s
=> => naming to docker.io/library/vsc-volume-bootstrap 0.0s
[4454 ms] Cloning Github repository: csc-667-spring-2023-roberts/term-project-c into /workspaces/term-project-c
[4456 ms] Start: Run: docker run -d --mount type=volume,src=term-project-c-f4d81444ece28f2df7f232a6f36aba08,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity
[5225 ms] Start: Run in container: /bin/sh
[5265 ms] Start: Launching Dev Containers helper.
[5266 ms] ssh-agent: SSH_AUTH_SOCK not set on local host.
[5266 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-237f7124-cb3f-43e3-917b-c1048214e13a.sock) forwarded to local host (\\.\pipe\openssh-ssh-agent).
[5266 ms] X11 forwarding: DISPLAY not set on local host.
[5267 ms] Start: Run in container: gpgconf --list-dir agent-socket
[5531 ms] /root/.gnupg/S.gpg-agent
[5532 ms]
[5532 ms] Start: Run in container: gpgconf --list-dir homedir
[5534 ms] /root/.gnupg
[5535 ms]
[5535 ms] Start: Run in container: ls '/root/.gnupg/private-keys-v1.d' 2>/dev/null
[5538 ms]
[5538 ms]
[5538 ms] Exit code 2
[5539 ms] Start: Run: gpgconf --list-dir agent-extra-socket
[5596 ms] gpg-agent: No agent-extra-socket found on local host.
[5596 ms] Start: Run in container: command -v docker >/dev/null 2>&1
[5598 ms]
[5599 ms]
[5599 ms] Start: Run in container: /bin/sh
[5654 ms] Start: Run in container: echo ~
[5965 ms] /root
[5965 ms]
[5966 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-237f7124-cb3f-43e3-917b-c1048214e13a.js' >/tmp/vscode-remote-containers-237f7124-cb3f-43e3-917b-c1048214e13a.js
[5969 ms]
[5969 ms]
[5970 ms] Start: Run in container: cat ~/.docker/config.json || echo "{
[5973 ms] {
}
[5973 ms] cat: /root/.docker/config.json: No such file or directory
[5974 ms] Start: Run in container: mkdir -p /usr/local/bin && cat <<'EOF-/usr/local/bin/docker-credential-dev-containers-237f7124-cb3f-43e3-917b-c1048214e13a' >/usr/local/bin/docker-credential-dev-containers-237f7124-cb3f-43e3-917b-c1048214e13a
[5979 ms]
[5980 ms]
[5980 ms] Start: Run in container: chmod +x /usr/local/bin/docker-credential-dev-containers-237f7124-cb3f-43e3-917b-c1048214e13a
[5983 ms]
[5983 ms]
[5984 ms] Start: Run in container: mkdir -p ~/.docker && cat <<'EOF-/usr/local/bin/docker-credential-dev-containers-237f7124-cb3f-43e3-917b-c1048214e13a' >~/.docker/config.json
[5989 ms]
[5989 ms]
[5989 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-237f7124-cb3f-43e3-917b-c1048214e13a.js' >/tmp/vscode-remote-containers-server-237f7124-cb3f-43e3-917b-c1048214e13a.js_1684756894428
[5995 ms]
[5995 ms]
[5997 ms] Start: Run in container: # Test for /root/.gitconfig and git
[6000 ms]
[6000 ms]
[6001 ms] Start: Run in container: # Copy C:\Users\nasso\.gitconfig to /root/.gitconfig
[6004 ms]
[6004 ms]
[6005 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { node /tmp/vscode-remote-containers-237f7124-cb3f-43e3-917b-c1048214e13a.js git-credential-helper $*; }; f' || true
[6008 ms]
[6008 ms]
[6009 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh
[6012 ms]
[6013 ms]
[6013 ms] Start: Run in container: # Copy C:\Users\nasso\.ssh\known_hosts to /root/.ssh/known_hosts
[6017 ms]
[6017 ms]
[6097 ms] Start: Run in container: cat /workspaces/term-project-c/.devcontainer/devcontainer.json 2>/dev/null
[6100 ms] Start: Run in container: cat /workspaces/term-project-c/.devcontainer/devcontainer.json 2>/dev/null
[6103 ms] The options 'workspaceMount' or 'workspaceFolder' are ignored when cloning a repository into a volume.
[6103 ms] Start: Run in container: cat <<'EOF-/tmp/devcontainer-9d0123d7-b135-4018-a214-62516793e071.json' >/tmp/devcontainer-9d0123d7-b135-4018-a214-62516793e071.json_1684756894542
[6107 ms]
[6107 ms]
[6107 ms] Start: Run in container: docker volume ls -q
[7109 ms] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://github.com/csc-667-spring-2023-roberts/term-project-c.git --filter label=vsch.local.repository.volume=term-project-c-f4d81444ece28f2df7f232a6f36aba08 --filter label=vsch.local.repository.folder=term-project-c --filter label=vsch.quality=stable
[7382 ms] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://github.com/csc-667-spring-2023-roberts/term-project-c.git --filter label=vsch.local.repository.volume=term-project-c-f4d81444ece28f2df7f232a6f36aba08 --filter label=vsch.local.repository.folder=term-project-c --filter label=devcontainer.config_file=/workspaces/term-project-c/.devcontainer/devcontainer.json
[7707 ms] Start: Run in container: docker inspect --type container 120734af7550
[8046 ms] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://github.com/csc-667-spring-2023-roberts/term-project-c.git --filter label=vsch.local.repository.volume=term-project-c-f4d81444ece28f2df7f232a6f36aba08 --filter label=vsch.local.repository.folder=term-project-c
[8372 ms] Start: Run in container: docker inspect --type container 120734af7550
[9334 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.292.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /workspaces/term-project-c --id-label vsch.local.repository=https://github.com/csc-667-spring-2023-roberts/term-project-c.git --id-label vsch.local.repository.volume=term-project-c-f4d81444ece28f2df7f232a6f36aba08 --id-label vsch.local.repository.folder=term-project-c --id-label devcontainer.config_file=/workspaces/term-project-c/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/term-project-c/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-9d0123d7-b135-4018-a214-62516793e071.json --mount-workspace-git-root true
[9639 ms] node:internal/modules/cjs/loader:1024
[9639 ms] throw err;
[9639 ms] ^
[9639 ms] Error: Cannot find module '/root/.vscode-remote-containers/dist/dev-containers-cli-0.292.0/dist/spec-node/devContainersSpecCLI.js'
[9639 ms] at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15)
[9639 ms] at Function.Module._load (node:internal/modules/cjs/loader:866:27)
[9640 ms] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
[9640 ms] at node:internal/main/run_main_module:22:47 {
[9640 ms] code: 'MODULE_NOT_FOUND',
[9640 ms] requireStack: []
[9640 ms] }
[9666 ms] Exit code 1
[9666 ms] Start: Run: docker rm -f 9c9663d6f7e54d46754d1b68f83a034bad70b3eafbb9aa509cb738024918824f
[9668 ms] Command failed: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.292.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /workspaces/term-project-c --id-label vsch.local.repository=https://github.com/csc-667-spring-2023-roberts/term-project-c.git --id-label vsch.local.repository.volume=term-project-c-f4d81444ece28f2df7f232a6f36aba08 --id-label vsch.local.repository.folder=term-project-c --id-label devcontainer.config_file=/workspaces/term-project-c/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/term-project-c/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-9d0123d7-b135-4018-a214-62516793e071.json --mount-workspace-git-root true
[9668 ms] Exit code 1
[9931 ms] Container server terminated (code: 137, signal: null).
```
Steps to Reproduce:
1. Open command palette
2. Select `Dev Containers: Clone Repository in Container Volume...`
3. Paste <https://github.com/nasso/todo-react-express-postgres/>
4. See error when setting up the container
Does this issue occur when you try this locally?: N/A
Does this issue occur when you try this locally and all extensions are disabled?: N/A
opened 01:13PM - 18 Sep 22 UTC
closed 09:28AM - 01 Jun 23 UTC
bug
containers
Hi. Just wanted to point out that there is a consistent issue with every new rel… ease. I think the log attached already has all the information needed.
Is this issue something on my end or is anyone else experiencing the MODULE_NOT_FOUND error on every new release?
[remoteContainers-2022-09-18T12-56-29.498Z.log](https://github.com/microsoft/vscode-remote-release/files/9594017/remoteContainers-2022-09-18T12-56-29.498Z.log)
opened 01:02PM - 19 May 23 UTC
closed 09:26AM - 01 Jun 23 UTC
bug
containers
verified
author-verification-requested
Does this issue occur when all extensions are disabled?: Yes/No
Yes
``… `
Version: 1.78.2 (user setup)
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:39:26.248Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: No
```
Steps to Reproduce:
1. Create new AzureDevops Repository with devcontainer script defined
2. Open VIsual Studio Code
3. Press F1 to open commands
4. Select `Clone repository in named container volume`
5. Copy repository url
6. Use default settings
Error:
```
[3641 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.292.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /workspaces/LibertasApp --id-label vsch.local.repository=https://enumsoftware@dev.azure.com/enumsoftware/LibertasApp/_git/LibertasApp --id-label vsch.local.repository.volume=vsc-remote-containers-libertas-app --id-label vsch.local.repository.folder=LibertasApp --id-label devcontainer.config_file=/workspaces/LibertasApp/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/LibertasApp/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-b5043b98-25d0-45aa-8cca-489d6ba8f549.json --mount-workspace-git-root true
[3807 ms] node:internal/modules/cjs/loader:1029
[3807 ms] throw err;
[3807 ms] ^
[3808 ms] Error: Cannot find module '/root/.vscode-remote-containers/dist/dev-containers-cli-0.292.0/dist/spec-node/devContainersSpecCLI.js'
[3808 ms] at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)
[3808 ms] at Function.Module._load (node:internal/modules/cjs/loader:871:27)
[3808 ms] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
[3808 ms] at node:internal/main/run_main_module:22:47 {
[3808 ms] code: 'MODULE_NOT_FOUND',
[3808 ms] requireStack: []
[3808 ms] }
[3826 ms] Exit code 1
[3826 ms] Start: Run: docker rm -f 2e1698aae7c27a6acc9ffe06f7cad0737e6f37d09445721f7eccf1916e808d0e
[3827 ms] Command failed: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.292.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /workspaces/LibertasApp --id-label vsch.local.repository=https://enumsoftware@dev.azure.com/enumsoftware/LibertasApp/_git/LibertasApp --id-label vsch.local.repository.volume=vsc-remote-containers-libertas-app --id-label vsch.local.repository.folder=LibertasApp --id-label devcontainer.config_file=/workspaces/LibertasApp/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/LibertasApp/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-b5043b98-25d0-45aa-8cca-489d6ba8f549.json --mount-workspace-git-root true
```
This used to happen a long time ago now it started happening again with new version of VS Code.
Also this does not happen when trying to run reopen in container but than commands like ng serve and npm install are way to slow
opened 12:40PM - 21 Aug 23 UTC
closed 12:28PM - 16 Jan 24 UTC
containers
info-needed
- VSCode Version: 1.81.1
- Local OS Version: Arch linux
- Remote OS Version: … Not Applicable
- Remote Extension/Connection Type: Containers
- Logs:
```
[79 ms] Dev Containers 0.304.0 in VS Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794).
[77 ms] Start: Resolving Remote
[103 ms] Start: Check Docker is running
[104 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[215 ms] Server API version: 1.43
[222 ms] Start: Run: docker build -f /tmp/vsch-moaz/bootstrap-image/0.304.0/bootstrap.Dockerfile -t vsc-volume-bootstrap /tmp/vsch-moaz/bootstrap-image/0.304.0
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.
Sending build context to Docker daemon 1.831MB
Step 1/5 : FROM mcr.microsoft.com/devcontainers/base:0-alpine-3.16
---> e348e1c8ff05
Step 2/5 : RUN echo "@old https://dl-cdn.alpinelinux.org/alpine/v3.15/main" >> /etc/apk/repositories
---> Using cache
---> 0df0c17b21a4
Step 3/5 : RUN apk add --no-cache git-lfs nodejs python3 npm make g++ docker-cli docker-cli-buildx docker-cli-compose openssh-client-default@old ;
---> Using cache
---> 80f992a06cb9
Step 4/5 : RUN cd && npm i node-pty
---> Using cache
---> 2212ef65cc7a
Step 5/5 : COPY .vscode-remote-containers /root/.vscode-remote-containers
---> Using cache
---> 28ed4f8b63c9
Successfully built 28ed4f8b63c9
Successfully tagged vsc-volume-bootstrap:latest
[354 ms] Start: Run: docker run -d --mount type=volume,src=basic-nodejs-2,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity
[1039 ms] Start: Run in container: /bin/sh
[1369 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.304.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /workspaces/basic-nodejs-2 --id-label vsc.devcontainer.volume.name=basic-nodejs-2 --id-label vsc.devcontainer.volume.folder=basic-nodejs-2 --log-level debug --log-format json --mount-workspace-git-root true
[2012 ms] @devcontainers/cli 0.50.0. Node.js v16.20.1. linux 6.4.11-arch2-1 x64.
[2012 ms] Start: Run: git rev-parse --show-cdup
[2047 ms] Start: Run: docker ps -q -a --filter label=vsc.devcontainer.volume.name=basic-nodejs-2 --filter label=vsc.devcontainer.volume.folder=basic-nodejs-2
[2092 ms] Command failed: docker ps -q -a --filter label=vsc.devcontainer.volume.name=basic-nodejs-2 --filter label=vsc.devcontainer.volume.folder=basic-nodejs-2
[2118 ms] Exit code 1
[2124 ms] Command failed: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.304.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /workspaces/basic-nodejs-2 --id-label vsc.devcontainer.volume.name=basic-nodejs-2 --id-label vsc.devcontainer.volume.folder=basic-nodejs-2 --log-level debug --log-format json --mount-workspace-git-root true
[2124 ms] Exit code 1
```
Steps to Reproduce:
1. `Ctrl + P`, Dev Containers: New Dev Container
2. choose basic nodejs
Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes
1 Like
msfz751
(msfz751)
May 20, 2024, 5:12pm
12
@hamrheadcorvette
as requested
[25 ms] Dev Containers 0.362.0 in VS Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685).
[24 ms] Start: Resolving Remote
[31 ms] Start: Check Docker is running
[31 ms] Start: Run: docker version
[53 ms] Client: Docker Engine - Community
Version: 26.1.3
API version: 1.45
Go version: go1.21.10
Git commit: b72abbb
Built: Thu May 16 08:35:25 2024
OS/Arch: linux/amd64
Context: rootless
Server: Docker Engine - Community
Engine:
Version: 26.1.3
API version: 1.45 (minimum version 1.24)
Go version: go1.21.10
Git commit: 8e96db1
Built: Thu May 16 08:33:42 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.31
GitCommit: e377cd56a71523140ca6ae87e30244719194a521
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
rootlesskit:
Version: 2.0.2
ApiVersion: 1.1.1
NetworkDriver: slirp4netns
PortDriver: builtin
StateDir: /run/user/1001/dockerd-rootless
slirp4netns:
Version: 1.2.2
GitCommit: 0ee2d87523e906518d34a6b423271e4826f71faf
[58 ms] Start: Run: docker build -f /tmp/vsch-msfz751/bootstrap-image/0.362.0/bootstrap.Dockerfile -t vsc-volume-bootstrap /tmp/vsch-msfz751/bootstrap-image/0.362.0
[+] Building 193.7s (13/13) FINISHED docker:rootless
=> [internal] load build definition from bootstrap.Dockerfile 0.2s
=> => transferring dockerfile: 1.08kB 0.0s
=> [internal] load metadata for mcr.microsoft.com/devcontainers/base:0-alpine-3.16 1.4s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [1/8] FROM mcr.microsoft.com/devcontainers/base:0-alpine-3.16@sha256:2b525b9d4a00ecf0a6f1725e57aa01b192 77.4s
=> => resolve mcr.microsoft.com/devcontainers/base:0-alpine-3.16@sha256:2b525b9d4a00ecf0a6f1725e57aa01b192f 0.2s
=> => sha256:2b525b9d4a00ecf0a6f1725e57aa01b192f0f79bc57780f62e892ebe955a343c 1.61kB / 1.61kB 0.0s
=> => sha256:c3313985418bab47c31830cbb8da6b74c254d3c8f3173672bdc71099f2556237 1.81kB / 1.81kB 0.0s
=> => sha256:fba726ae349c2fb0fc7a6f4a07821bb16d763c87c3f2fb3f48ec81ec47dc42da 9.51kB / 9.51kB 0.0s
=> => sha256:a88dc8b54e91eb6b19695ef7e04865926d4df23004f414a3ee86978617492d4d 2.81MB / 2.81MB 1.2s
=> => sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 32B / 32B 0.7s
=> => sha256:28aa05b47ac536e5e91328637823419cc076cac5e2722696c8365ce88521f66c 411B / 411B 1.0s
=> => sha256:483586495ec58a41f4fc191ab70e4906eb810a959c72d5cfe05908be9c38d82f 135B / 135B 1.3s
=> => sha256:85d9b35043c721197d28fdc8311e3a1c36327e1f523d72c54a25d49bca9d46c5 224B / 224B 1.2s
=> => extracting sha256:a88dc8b54e91eb6b19695ef7e04865926d4df23004f414a3ee86978617492d4d 0.0s
=> => sha256:cd3ef81b7e54f32b9d2f7dc493ad7aa68e3626fc1d5b8ef899bb921c41d67d99 234B / 234B 1.7s
=> => sha256:9c8715c3b1fec25f06b3321d5bea6d168c428a0f079bcfc4302adf057c71221e 189.62MB / 189.62MB 73.1s
=> => extracting sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 0.0s
=> => extracting sha256:28aa05b47ac536e5e91328637823419cc076cac5e2722696c8365ce88521f66c 0.0s
=> => sha256:aa480694647bfde504fdd99be1d3a9d59ab82eec685ec904deded407bbd4da84 43.80MB / 43.80MB 41.5s
=> => extracting sha256:483586495ec58a41f4fc191ab70e4906eb810a959c72d5cfe05908be9c38d82f 0.0s
=> => extracting sha256:85d9b35043c721197d28fdc8311e3a1c36327e1f523d72c54a25d49bca9d46c5 0.0s
=> => extracting sha256:cd3ef81b7e54f32b9d2f7dc493ad7aa68e3626fc1d5b8ef899bb921c41d67d99 0.0s
=> => extracting sha256:9c8715c3b1fec25f06b3321d5bea6d168c428a0f079bcfc4302adf057c71221e 2.1s
=> => extracting sha256:aa480694647bfde504fdd99be1d3a9d59ab82eec685ec904deded407bbd4da84 1.0s
=> [internal] load build context 0.2s
=> => transferring context: 2.04MB 0.0s
=> [2/8] COPY host-ca-certificates.crt /tmp/host-ca-certificates.crt 0.1s
=> [3/8] RUN cat /tmp/host-ca-certificates.crt >> /etc/ssl/certs/ca-certificates.crt 0.4s
=> [4/8] RUN csplit -f /usr/local/share/ca-certificates/host-ca-certificate- -b '%02d.pem' -z -s /tmp/host- 0.4s
=> [5/8] RUN echo "@old https://dl-cdn.alpinelinux.org/alpine/v3.15/main" >> /etc/apk/repositories 0.4s
=> [6/8] RUN apk add --no-cache git-lfs nodejs python3 npm make g++ docker-cli docker-cli-buildx 99.8s
=> [7/8] RUN npm config set cafile /etc/ssl/certs/ca-certificates.crt && cd && npm i node-pty || echo "Cont 9.8s
=> [8/8] COPY .vscode-remote-containers /root/.vscode-remote-containers 0.2s
=> exporting to image 2.8s
=> => exporting layers 2.7s
=> => writing image sha256:5de1b03b651d9a8ee10c6e65f5ee9e3e07c80743b6e286a6bd51ef72d87aab5b 0.0s
=> => naming to docker.io/library/vsc-volume-bootstrap 0.0s
[193935 ms] Start: Run: docker run -d --mount type=volume,src=alpine,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity
[194466 ms] Start: Run in container: /bin/sh
[194472 ms] Running Dev Containers CLI: read-configuration --workspace-folder /workspaces/alpine --id-label vsc.devcontainer.volume.name=alpine --id-label vsc.devcontainer.volume.folder=alpine --log-level debug --log-format json --mount-workspace-git-root --terminal-columns 115 --terminal-rows 25
[194613 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.362.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /workspaces/alpine --id-label vsc.devcontainer.volume.name=alpine --id-label vsc.devcontainer.volume.folder=alpine --log-level debug --log-format json --mount-workspace-git-root --terminal-columns 115 --terminal-rows 25
[194879 ms] @devcontainers/cli 0.59.1. Node.js v16.20.2. linux 6.8.9-200.fc39.x86_64 x64.
[194879 ms] Start: Run: git rev-parse --show-cdup
[194888 ms] Start: Run: docker ps -q -a --filter label=vsc.devcontainer.volume.name=alpine --filter label=vsc.devcontainer.volume.folder=alpine
[194916 ms] Command failed: docker ps -q -a --filter label=vsc.devcontainer.volume.name=alpine --filter label=vsc.devcontainer.volume.folder=alpine
[194922 ms] Exit code 1
[194924 ms] Command failed: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.362.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /workspaces/alpine --id-label vsc.devcontainer.volume.name=alpine --id-label vsc.devcontainer.volume.folder=alpine --log-level debug --log-format json --mount-workspace-git-root --terminal-columns 115 --terminal-rows 25
[194924 ms] Exit code 1
1 Like
Try this command :
docker ps -q -a --filter label=vsc.devcontainer.volume.name=alpine --filter label=vsc.devcontainer.volume.folder=alpine
I’ll be back in a little while, I’m going to create this myself too. Thanks for the reply. I will try to reconfigure with Podman as well to see if it does help. . .
1 other thing, Do you have Podman running? if so disable it then try what you normally do. Maybe there’s conflict.
sudo systemctl stop podman.service
1 Like
msfz751
(msfz751)
May 20, 2024, 5:24pm
16
This is the command that fails:
node /root/.vscode-remote-containers/dist/dev-containers-cli-0.362.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /workspaces/alpine-3 --id-label vsc.devcontainer.volume.name=alpine-3 --id-label vsc.devcontainer.volume.folder=alpine-3 --log-level debug --log-format json --mount-workspace-git-root
But I can see the files created under /tmp/vsch-user
, which is root
for vscode.
devContainersSpecCLI.js
is a 1.8 MB file.
1 Like
Maybe we get somewhere here?
Check the Permissions :
ls -lZ /workspaces/alpine-3/.devcontainer.json
Let’s see if your user has the right permissions to read it.
msfz751
(msfz751)
May 20, 2024, 5:44pm
19
Although, I found alpine-3 here:
devcontainer.json
content:
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
{
"name": "Alpine",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:alpine-3.19"
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
1 Like
msfz751:
No files in there!
IDK if this is being surprised or emphatic
When it should be in /workspaces/alpine-3/.devcontainer.json
copy it and place it here. . .