Using locally build images when using devcontainer build #71
Replies: 2 comments 2 replies
-
Hi 👋 The cli will first look at the images which are available locally, and only then attempt to pull from the registry. See https://github.com/devcontainers/cli/blob/main/src/spec-node/utils.ts#L216 I tested it, and it did pull the correct local image. @mwoodpatrick Do you mind sharing the logs with the following command, thanks? 👇 devcontainer build --workspace-folder . --log-level trace |
Beta Was this translation helpful? Give feedback.
-
I wonder if you are facing a similar issue like devcontainers/cli#629 Looking at the logs, looks like you are using Reasoning: |
Beta Was this translation helpful? Give feedback.
-
I have a local build of my app which I created and when I run:
docker image inspect mwoodpatrick/wp-codespace:latest
The command reports the expected info.
The image only exists locally and has not been pushed to an external repository.
but when I run:
devcontainer build --workspace-folder .
The command fails since it is looking for:
docker.io/mwoodpatrick/wp-codespace:latest
Is there a way for to tell the command to look for my image locally first?
Beta Was this translation helpful? Give feedback.
All reactions