Skip to content

How to set up a devcontainer together with a Docker entrypoint script? #122

Discussion options

You must be logged in to vote

Hi 👋

I have recently noticed a raise of the devcontainer standard which is used by GitHub Codespaces as well as DevPod and I wanted to add a devcontainer.json file to my repository so that I can start an in-browser VS Code instance which runs inside my container (based on the two files above).

Super nice to hear this, a very warm welcome to "Dev Containers" 👋

However, whenever I start a new instance of the development environment I can check in the terminal inside that I am still root, not user. I checked with cat /etc/passwd that the latter is not even created, which suggests to me that the entrypoint script was not executed.

For the supporting tools like VS Code's Dev Container exte…

Replies: 2 comments 3 replies

Comment options

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

@samruddhikhandale
Comment options

Answer selected by AngryMaciek
Comment options

You must be logged in to vote
1 reply
@chrmarti
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
4 participants