devcontainers / devcontainers/spec

Wait for container initialization before devcontainer setup

Open
#453 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
5.7k
Forks
496
PR merge metrics
No merged PRs in 30d

Description

I'm using a container that has its own init system. Part of the init process of the container is to create the container user. I'm running into an issue where the devcontainer implementation [starts trying to get information about the remoteUser](https://github.com/devcontainers/cli/blob/1da368b5a227acea4b427fea2da4548960a7a061/src/spec-node/singleContainer.ts#L65) before that user is even created.

Is there any method to block first-time container inspection/setup until a command finishes? I was hoping to use `onCreateCommand` for this, but it is run after the container is probed, not immediately after it is created.

#299 might solve this issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.