-
Notifications
You must be signed in to change notification settings - Fork 456
Description
What happened?
I am having difficulties using devpod with wsl2. It is not building. I installed the docker with docker desktop and cloned a repository inside the wsl2 folder structure (as you can see on the logs).
I also have a 2 docker-compose.yaml configured (Followed the default configuration on https://code.visualstudio.com/docs/devcontainers/create-dev-container#_extend-your-docker-compose-file-for-development).
Here is my docker provider:
I have looked a litte bit on it and found that Wsl have 2 communication protocols accessed by different urls:
- \\wsl.localhost\Ubuntu\
- \wsl.localhost\Ubuntu\
Dont know really know why, but the second one is really different from the first, it is missing a lot of files. The devpod is being mounted on the second one leading to problems. I dont know if it is a bug os something misconfigured my me.
Logs:
debug Skipping configuring daemon
[09:07:33] debug Using docker command 'docker'
[09:07:33] info devcontainer path /wsl.localhost/Ubuntu/home/pedrol3001/Documents/prevision-dev/preconstruction-web/.devcontainer/devcontainer.json doesn't exist: CreateFile /wsl.localhost/Ubuntu/home/pedrol3001/Documents/prevision-dev/preconstruction-web/.devcontainer/devcontainer.json: The system cannot find the file specified.
[09:07:33] info parsing devcontainer.json
[09:07:33] info github.com/loft-sh/devpod/pkg/devcontainer.(*runner).getRawConfig
[09:07:33] info D:/a/devpod/devpod/pkg/devcontainer/config.go:64
[09:07:33] info github.com/loft-sh/devpod/pkg/devcontainer.(*runner).getSubstitutedConfig
[09:07:33] info D:/a/devpod/devpod/pkg/devcontainer/config.go:93
[09:07:33] info github.com/loft-sh/devpod/pkg/devcontainer.(*runner).Up
[09:07:33] info D:/a/devpod/devpod/pkg/devcontainer/run.go:102
[09:07:33] info github.com/loft-sh/devpod/cmd/agent/workspace.(*UpCmd).devPodUp
[09:07:33] info D:/a/devpod/devpod/cmd/agent/workspace/up.go:129
[09:07:33] info github.com/loft-sh/devpod/cmd/agent/workspace.(*UpCmd).up
[09:07:33] info D:/a/devpod/devpod/cmd/agent/workspace/up.go:104
[09:07:33] info github.com/loft-sh/devpod/cmd/agent/workspace.(*UpCmd).Run
[09:07:33] info D:/a/devpod/devpod/cmd/agent/workspace/up.go:94
[09:07:33] info github.com/loft-sh/devpod/cmd/agent/workspace.NewUpCmd.func1
[09:07:33] info D:/a/devpod/devpod/cmd/agent/workspace/up.go:52
[09:07:33] info github.com/spf13/cobra.(*Command).execute
[09:07:33] info D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:985
[09:07:33] info github.com/spf13/cobra.(*Command).ExecuteC
[09:07:33] info D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:1117
[09:07:33] info github.com/spf13/cobra.(*Command).Execute
[09:07:33] info D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:1041
[09:07:33] info github.com/loft-sh/devpod/cmd.Execute
[09:07:33] info D:/a/devpod/devpod/cmd/root.go:81
[09:07:33] info main.main
[09:07:33] info D:/a/devpod/devpod/main.go:6
[09:07:33] info runtime.main
[09:07:33] info C:/Users/runneradmin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.6.windows-amd64/src/runtime/proc.go:271
[09:07:33] info runtime.goexit
[09:07:33] info C:/Users/runneradmin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.6.windows-amd64/src/runtime/asm_amd64.s:1695
[09:07:33] info devcontainer up
[09:07:33] info github.com/loft-sh/devpod/cmd/agent/workspace.(*UpCmd).Run
[09:07:33] info D:/a/devpod/devpod/cmd/agent/workspace/up.go:96
[09:07:33] info github.com/loft-sh/devpod/cmd/agent/workspace.NewUpCmd.func1
[09:07:33] info D:/a/devpod/devpod/cmd/agent/workspace/up.go:52
[09:07:33] info github.com/spf13/cobra.(*Command).execute
[09:07:33] info D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:985
[09:07:33] info github.com/spf13/cobra.(*Command).ExecuteC
[09:07:33] info D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:1117
[09:07:33] info github.com/spf13/cobra.(*Command).Execute
[09:07:33] info D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:1041
[09:07:33] info github.com/loft-sh/devpod/cmd.Execute
[09:07:33] info D:/a/devpod/devpod/cmd/root.go:81
[09:07:33] info main.main
[09:07:33] info D:/a/devpod/devpod/main.go:6
[09:07:33] info runtime.main
[09:07:33] info C:/Users/runneradmin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.6.windows-amd64/src/runtime/proc.go:271
[09:07:33] info runtime.goexit
[09:07:33] info C:/Users/runneradmin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.6.windows-amd64/src/runtime/asm_amd64.s:1695
[09:07:33] info exit status 1
[09:07:33] debug Connection to SSH Server closed
[09:07:33] debug Done creating devcontainer
[09:07:33] debug Done executing ssh server helper command
[09:07:34] fatal Process exited with status 1
run agent command
github.com/loft-sh/devpod/pkg/devcontainer/sshtunnel.ExecuteCommand.func2
D:/a/devpod/devpod/pkg/devcontainer/sshtunnel/sshtunnel.go:129
runtime.goexit
C:/Users/runneradmin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.6.windows-amd64/src/runtime/asm_amd64.s:1695
What did you expect to happen instead?
Open the cursor IDE with extensions installed
How can we reproduce the bug? (as minimally and precisely as possible)
- Install and configure docker with wsl2 and docker desktop
- Click to rebuild the repository with the devcontainer.
My devcontainer.json
:
{
"name": "Preconstruction Web Development Container",
"dockerComposeFile": [
"../docker-compose.yml",
"docker-compose.yml"
],
"service": "incorporation-web",
"workspaceFolder": "/workspace",
"features": {
"ghcr.io/dhoeric/features/hadolint:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/joshuanianji/devcontainer-features/github-cli-persistence:0": {},
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": true
}
},
"customizations": {
"vscode": {
"extensions": [
"Lourenci.go-to-spec",
"donjayamanne.githistory",
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode",
"GitHub.vscode-pull-request-github",
"lokalise.i18n-ally",
"streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker-portuguese-brazilian",
"amandeepmittal.pug",
"dbaeumer.vscode-eslint",
"vuetifyjs.vuetify-vscode",
"exiasr.hadolint",
"ms-azuretools.vscode-docker",
"tonybaloney.vscode-pets",
"ms-vscode.vscode-typescript-next",
"vitest.explorer",
"vue.volar",
"eamodio.gitlens",
"github.copilot",
"github.copilot-chat",
"github.vscode-github-actions"
]
}
}
}
Local Environment:
- DevPod Version: v0.6.15
- Operating System: windows with wsl2
- ARCH of the OS: AMD64
DevPod Provider:
- Local/remote provider: docker