cli
cli copied to clipboard
The `devcontainer templates apply` command hangs
I'm attempting to test a new dev container template I'm creating. When using the devcontainer templates apply --template-id 'ghcr.io/mcollier/logic-app-dev-container-template/logic-app-standard'
command, the command appears to hang (doesn't exit successful . .. . just hangs). I can use CTRL+C to exit. The files in the folder look correct, and thus seems like the template was applied correctly.
Could there be something wrong with my template? Or a bug in the devcontainer templates apply
command?
The template appears to apply and exit for me on MacOS.
To make sure I understand, are you seeing the src
/.devcontainer
folders create, but the command itself is not exiting?
Could you please share some info on the OS/platform you're running?
I'm running from WSL2 (running Ubuntu 20.04.6 LTS) via Windows Terminal.
My OS is Windows 11.
Thanks for the reply. I don't have a windows machine super handy to test, but it seems like the CLI is getting stuck here on your machine. Since I didn't repro on my Mac it doesn't seem to be an issue with your template :)
I'm curious if other commands in the CLI behave the same way (devcontainers up
, ...). Also, if you have the devcontainers extension installed on your machine, does it hang if you Add a dev container with the wizard? That picker uses the apply command under the hood.
I tried devcontainer up
and seems to exhibit the same behavior.
I also tried using the VSCode extension. It worked as expected.
Thanks for following up. We'll keep this open to track if others are hitting the same issue. You may also want to try with --log-level trace
to see if that provides any additional info, although given what you've shared so far I don't think it's hanging at any spot that we might be logging 🤔
Any update on the status of this bug?
I'm using version 0.62.0 of the devcontainer CLI and both devcontainer --help
or devcontainer --version
hangs after printing their respective messages. Need to type Ctrl-C to return to the WSL2 prompt.
Windows 11 with the devcontainer CLI installed through the VSCode option.