Skip to content

The env_file field in the docker-compose.yml causes the .devcontainer to fail on creation #27158

Answered by jkeech
cysabi asked this question in Codespaces
Discussion options

You must be logged in to vote

@LeptoFlare you can find the docs at devcontainer.json reference.

Here’s the description for the initializeCommand

initializeCommand string, array
A command string or list of command arguments to run on the local machine before the container is created. This runs either when the container image is being built and when the running container is created or started. The commands execute from the workspaceFolder locally. For example, "yarn install" . The array syntax ["yarn", "install"] will invoke the command (in this case yarn ) directly without using a shell.
⚠️ The command is run wherever the source code is located. For Codespaces this is in the cloud.

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants