-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode and Remote-Containers fail #42
Comments
I see two issues here:
|
|
3)Context is desktop-linux Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them |
I think I am experiencing same error as @SergeiSOficial: |
Ok I found microsoft/vscode-remote-release#509 and was able to resolve the issue by specifying the So essentially, I added this line in devcontainer.json: "workspaceMount": "type=bind,source=/mnt/c/my/Projects/ngx_http_jwted_module,target=/workspaces/ngx_http_jwted_module,consistency=cached" Everything seems to work now 🎉 Maybe good to mention somewhere in the docs, because this didn't happen in Docker Desktop, so I guess many people will hit it and think that stevedore is to blame... |
This should be fixed in just-released Stevedore 0.6.1, so Windows-style path should also work. Feel free to comment if issue still persists. Note that it will take some time to publish release (especially on WinGet where it goes through manual moderation process). |
Thanks Marat, appreciate the fix 👍 I'll try it out. |
Sorry, took me some time to verify the fix, but unfortunately, it still doesn't work in 0.6.1. I double-checked that Stevedore was updated. As soon as I comment out the "workspaceMount" line, it fails again with same error as before:
|
I'm getting this error when trying to use This is on stevedore 0.7.0, with both windows and linux containers features installed (with hyper-v too). |
Stevedore is no longer providing support for Linux containers. See why. I recommend switching to Rancher Desktop, Container Desktop or Colima. |
Version
0.6.0
What steps are needed to reproduce the behavior?
Microsoft Windows [Version 10.0.19044.1586]
WSL2
Docker version 20.10.14, build a224086
DockerFile
FROM mcr.microsoft.com/vscode/devcontainers/base:0-bionic
devcontainer.json
{ /"name": "Ubuntu", "build": { "dockerfile": "Dockerfile", "args": { "VARIANT": "bionic" } }, "settings": {}, }
What you expected?
I want connect to remote container with stevedore, but there is error
What happened?
Log
`[53 ms] Remote-Containers 0.231.6 in VS Code 1.66.2 (dfd34e8260c270da74b5c2d86d61aee4b6d56977).
[53 ms] Start: Resolving Remote
[63 ms] Setting up container for folder or workspace: c:\worspace\project\Firmware\project.code-workspace
[66 ms] Start: Check Docker is running
[66 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[6963 ms] Server API version: 1.41
[6963 ms] Start: Run: docker volume ls -q
[10335 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=c:\worspace\project\Firmware --filter label=vsch.quality=stable
[12965 ms] Start: Run: C:\Program Files\Microsoft VS Code\Code.exe c:\Users\user.vscode\extensions\ms-vscode-remote.remote-containers-0.231.6\dist\spec-node\devContainersSpecCLI.js up --container-data-folder .vscode-server/data/Machine --container-system-data-folder /var/vscode-server --workspace-folder c:\worspace\project\Firmware --workspace-mount-consistency cached --id-label vsch.local.folder=c:\worspace\project\Firmware --id-label vsch.quality=stable --log-level debug --config c:\worspace\project\Firmware.devcontainer\devcontainer.json --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true --terminal-columns 215 --terminal-rows 12
[13172 ms] remote-containers 0.231.6.
[13172 ms] Start: Resolving Remote
[13176 ms] Start: Run: git rev-parse --show-cdup
[17458 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=c:\worspace\project\Firmware --filter label=vsch.quality=stable
[20280 ms] Start: Run: docker build -f c:\worspace\project\Firmware.devcontainer\Dockerfile -t vsc-firmware-ddb69664cfc4183dc0361ff9237ce6d0 --build-arg VARIANT=bionic c:\worspace\project\Firmware.devcontainer
Sending build context to Docker daemon 27.65kB
Step 1/2 : ARG VARIANT="bionic"
Step 2/2 : FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}
---> c7f208b9964f
Successfully built c7f208b9964f
Successfully tagged vsc-firmware-ddb69664cfc4183dc0361ff9237ce6d0:latest
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[29357 ms] Start: Run: docker events --format {{json .}} --filter event=start
[29445 ms] Start: Starting container
[29445 ms] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=bind,source=c:\worspace\project,target=/workspaces/project,consistency=cached --mount type=volume,src=vscode,dst=/vscode -l vsch.local.folder=c:\worspace\project\Firmware -l vsch.quality=stable --entrypoint /bin/sh vsc-firmware-ddb69664cfc4183dc0361ff9237ce6d0 -c echo Container started
docker: Error response from daemon: failed to start service utility VM (createreadwrite): kernel 'C:\Program Files\Linux Containers\kernel' not found.
See 'docker run --help'.
[32162 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=c:\worspace\project\Firmware --filter label=vsch.quality=stable
[34758 ms] Error: Command failed: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=bind,source=c:\worspace\project,target=/workspaces/project,consistency=cached --mount type=volume,src=vscode,dst=/vscode -l vsch.local.folder=c:\worspace\project\Firmware -l vsch.quality=stable --entrypoint /bin/sh vsc-firmware-ddb69664cfc4183dc0361ff9237ce6d0 -c echo Container started
[34758 ms] trap "exit 0" 15
[34758 ms] exec "$@"
[34758 ms] while sleep 1 & wait $!; do :; done -
[34758 ms] at bR (c:\Users\user.vscode\extensions\ms-vscode-remote.remote-containers-0.231.6\dist\spec-node\devContainersSpecCLI.js:219:986)
[34758 ms] at Hw (c:\Users\user.vscode\extensions\ms-vscode-remote.remote-containers-0.231.6\dist\spec-node\devContainersSpecCLI.js:219:924)
[34758 ms] at processTicksAndRejections (node:internal/process/task_queues:96:5)
[34759 ms] at async IR (c:\Users\user.vscode\extensions\ms-vscode-remote.remote-containers-0.231.6\dist\spec-node\devContainersSpecCLI.js:224:2024)
[34759 ms] at async Xw (c:\Users\user.vscode\extensions\ms-vscode-remote.remote-containers-0.231.6\dist\spec-node\devContainersSpecCLI.js:224:3221)
[34759 ms] at async kR (c:\Users\user.vscode\extensions\ms-vscode-remote.remote-containers-0.231.6\dist\spec-node\devContainersSpecCLI.js:224:13925)
[34759 ms] at async TR (c:\Users\user.vscode\extensions\ms-vscode-remote.remote-containers-0.231.6\dist\spec-node\devContainersSpecCLI.js:224:13650)
[34793 ms] Exit code 1
[34794 ms] Command failed: C:\Program Files\Microsoft VS Code\Code.exe c:\Users\user.vscode\extensions\ms-vscode-remote.remote-containers-0.231.6\dist\spec-node\devContainersSpecCLI.js up --container-data-folder .vscode-server/data/Machine --container-system-data-folder /var/vscode-server --workspace-folder c:\worspace\project\Firmware --workspace-mount-consistency cached --id-label vsch.local.folder=c:\worspace\project\Firmware --id-label vsch.quality=stable --log-level debug --config c:\worspace\project\Firmware.devcontainer\devcontainer.json --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true --terminal-columns 215 --terminal-rows 12
[34794 ms] Exit code 1
`
Additional context
No response
The text was updated successfully, but these errors were encountered: