Skip to content

Lifecycle Scripts Absent From Pre-Build #1016

@cadojo

Description

@cadojo

When I read the specification, it appears that onCreateCommand should be included in pre-built images. When I run the following in my MWE, it's clear that onCreateCommand did not run. (In the MWE, onCreateCommand is set to touch ~/on-create-command-ran.success.)

git clone https://github.com/cadojo/devcontainer-mwe
cd devcontainer-mwe
devcontainer build --workspace-folder .   # outputs an image name
docker run -it --entrypoint bash $IMAGE   # set to the image name above 
root ➜ / $ ls ~ # no output

Am I misunderstanding the specification? Or is this a bug in the reference implementation?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions