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?
When I read the specification, it appears that
onCreateCommandshould be included in pre-built images. When I run the following in my MWE, it's clear thatonCreateCommanddid not run. (In the MWE,onCreateCommandis set totouch ~/on-create-command-ran.success.)Am I misunderstanding the specification? Or is this a bug in the reference implementation?