You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A command string or list of command arguments to run on the host machine during initialization, including during container creation and on subsequent starts. The command may run more than once during a given session.
The command is run wherever the source code is located on the host. For cloud services, this is in the cloud.
How can we reproduce the bug? (as minimally and precisely as possible)
create a dev container Git repo with devcontainer.json configuration file with initializeCommand set to something like "echo HELLO FROM initializeCommand"
configure DevPod to use a Kubernetes provider
configure DevPod to enable Debug messages
create a DevPod workspace using Git repo and Kubernetes provider
Kubernetes Provider: Client Version = v1.32.1; Kustomize Version = v5.5.0; Server Version: v1.32.1
Anything else we need to know?
When using VS Code Dev Containers (running on Windows) to create dev containers that are running in either Windows Subsystem for Linux 2 or a remote Linux computer system, the VS Code devcontainer subsystem runs initializeCommand on the container host system (Linux). VS Code is not running the initializeCommand on the VS Code host computer system (i.e. Windows). DevPod's implementation seems of this feature is not mimicking the behavior of VS Code Dev Containers extension, which I assume is acting as a reference implementation.
Another difference is VS Code Dev Containers executes the initializeCommand using the Bourne Shell (sh) (not Bourne Again Shell (bash) and not Windows CMD shell). DevPod running on Windows seem to default to running the initializeCommand using Windows CMD shell. VS Code Dev Containers does not support Windows containers. It only supports Linux containers. Thus, it is odd that DevPod's implementation of the dev container initializeCommand uses Windows CMD and not a Linux shell.
The text was updated successfully, but these errors were encountered:
What happened?
Dev container initializeCommand is being executed on the DevPod host computer system.
What did you expect to happen instead?
Dev container initializeCommand should be executed on the dev container host computer system.
Per the dev container specification:
How can we reproduce the bug? (as minimally and precisely as possible)
My
devcontainer.json
:Local Environment:
DevPod Provider:
Anything else we need to know?
When using VS Code Dev Containers (running on Windows) to create dev containers that are running in either Windows Subsystem for Linux 2 or a remote Linux computer system, the VS Code devcontainer subsystem runs initializeCommand on the container host system (Linux). VS Code is not running the initializeCommand on the VS Code host computer system (i.e. Windows). DevPod's implementation seems of this feature is not mimicking the behavior of VS Code Dev Containers extension, which I assume is acting as a reference implementation.
Another difference is VS Code Dev Containers executes the initializeCommand using the Bourne Shell (sh) (not Bourne Again Shell (bash) and not Windows CMD shell). DevPod running on Windows seem to default to running the initializeCommand using Windows CMD shell. VS Code Dev Containers does not support Windows containers. It only supports Linux containers. Thus, it is odd that DevPod's implementation of the dev container initializeCommand uses Windows CMD and not a Linux shell.
The text was updated successfully, but these errors were encountered: