Skip to content

My devcontainer fails everytime I recreate it without cache #114

Discussion options

You must be logged in to vote

Thanks for the repro steps, super helpful.
Your configuration is missing a step which will keep the container active so that it doesn't shut down after the process ends.

Can you add the following command? see https://github.com/CodingSpiderFox/nx-boilerplate-devcontainer/compare/main...samruddhikhandale:nx-boilerplate-devcontainer:patch-2?expand=1 for reference

# Overrides default command so things don't shut down after the process ends.
command: /bin/sh -c "while sleep 1000; do :; done"

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@samruddhikhandale
Comment options

Answer selected by spotlesscoder
@spotlesscoder
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants