Skip to content
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

[dev containers] Application of template failed #9975

Closed
dal13002 opened this issue Jun 12, 2024 · 2 comments
Closed

[dev containers] Application of template failed #9975

dal13002 opened this issue Jun 12, 2024 · 2 comments
Assignees
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster

Comments

@dal13002
Copy link

We are using a remote (Debian Linux) host to use dev containers. Most of the options dev container offers, while using the dev containers vs code plugin, works well (ie "open folder in container") but some options have issues. For example, when using "Dev Container: New Dev Container" option on vs code, I get an error. VS Code has a pop up that states: Application of template failed, and the logs are what is posted below. It seems the templates apply line is using local machine directories instead of remote host since it has paths using C drive (Windows).

  • VSCode Version: 1.90.0

  • Local OS Version: Windows 11

  • Remote OS Version: Debian 12

  • Remote Extension/Connection Type: Remote host connection

  • Logs:

[1739611 ms] Start: Run: docker version --format {{json .}}
[1739684 ms] {"Client":{"Platform":{"Name":"Docker Engine - Community"},"Version":"26.1.3","ApiVersion":"1.45","DefaultAPIVersion":"1.45","GitCommit":"b72abbb","GoVersion":"go1.21.10","Os":"linux","Arch":"amd64","BuildTime":"Thu May 16 08:33:42 2024","Context":"default"},"Server":{"Platform":{"Name":"Docker Engine - Community"},"Components":[{"Name":"Engine","Version":"26.1.3","Details":{"ApiVersion":"1.45","Arch":"amd64","BuildTime":"Thu May 16 08:33:42 2024","Experimental":"false","GitCommit":"8e96db1","GoVersion":"go1.21.10","KernelVersion":"6.1.0-21-cloud-amd64","MinAPIVersion":"1.24","Os":"linux"}},{"Name":"containerd","Version":"1.6.32","Details":{"GitCommit":"8b3b7ca2e5ce38e8f31a34f35b2b68ceb8470d89"}},{"Name":"runc","Version":"1.1.12","Details":{"GitCommit":"v1.1.12-0-g51d5e94"}},{"Name":"docker-init","Version":"0.19.0","Details":{"GitCommit":"de40ad0"}}],"Version":"26.1.3","ApiVersion":"1.45","MinAPIVersion":"1.24","GitCommit":"8e96db1","GoVersion":"go1.21.10","Os":"linux","Arch":"amd64","KernelVersion":"6.1.0-21-cloud-amd64","BuildTime":"2024-05-16T08:33:42.000000000+00:00"}}
[1739685 ms] Start: Run: docker pull alpine:3.16.3
[1739856 ms] Start: Run: docker volume ls -q
[1747631 ms] Start: Run: docker volume create --label dev.container.volume=true dotnet-node-mssql
[1747699 ms] Start: Run: docker run -d --mount type=volume,src=dotnet-node-mssql,dst=/workspaces alpine:3.16.3 sleep infinity
[1748418 ms] Preparing to apply Template 'ghcr.io/rsm-hcd/devcontainer-templates/dotnet-node-mssql:latest'
[1748421 ms] Running Dev Containers CLI:   templates apply --workspace-folder C:\Users\dal\AppData\Local\Temp\tmp-output-dir-1718205814982 --template-id ghcr.io/rsm-hcd/devcontainer-templates/dotnet-node-mssql:latest --template-args {} --features [] --tmp-dir C:\Users\dal\AppData\Local\Temp\tmp-dir-1718205814982 --log-level debug
[1770342 ms] Start: Run: docker rm -f 78dad162d25f7fba072c3cf9e8d7fc11cd2353a6e88b9c887548cde994568768

Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No

@VSCodeTriageBot VSCodeTriageBot added the containers Issue in vscode-remote containers label Jun 12, 2024
@chrmarti
Copy link
Contributor

Please enable trace logging in the user settings and append a new log from when this happens:

Image

@chrmarti chrmarti added the info-needed Issue requires more information from poster label Jun 13, 2024
@VSCodeTriageBot
Copy link
Collaborator

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants