Skip to content

Lifecycle Scripts Absent From Pre-Build #1016

Description

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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