Open AndesKrrrrrrrrrrr opened 1 week ago
can you replicate this outside devcontainers? like with a containerfile ?
This looks like you did not fully specify the image name, just used a short name?
@baude, I haven't tried, the issue seems to be short name resolution anyways.
@rhatdan, I did not specify anything, rather it's the devcontainer cli pulling from a locally built layer.
Is it wrong of me to assume that we should search locally first for short-names? I would've expected this if the image being pulled is of a conventional registry form (e.g. foo/bar
)... I guess it's all a repositories, slashes or not. Nonetheless, I would expect local-first search before asking for for registry selection.
Also, why isn't localhost/vsc-cli-*
an option? I can copy the string and run locally with
podman run --rm -it vsc-cli-*
I could post an issue to the devcontainer cli asking to prefix the image pull with localhost/
... :thinking:
Here's some sample output during devcontainer build
in the https://github.com/devcontainers/cli repo:
podman build -f /tmp/devcontainercli-person/updateUID.Dockerfile-0.65.0 -t vsc-cli-4ee3098167f24595df8161e2a6a226ab0bfe78567231ed22d21f0f0d45a5d006-uid --platform linux/amd64 --build-arg BASE_IMAGE=vsc-cli-4ee3098167f24595df8161e2a6a226ab0bfe78567231ed22d21f0f0d45a5d006 --build-arg REMOTE_USER=node --build-arg NEW_UID=1000 --build-arg NEW_GID=1000 --build-arg IMAGE_USER=node /tmp/devcontainercli-person/empty-folder
STEP 1/9: FROM vsc-cli-4ee3098167f24595df8161e2a6a226ab0bfe78567231ed22d21f0f0d45a5d006
? Please select an image:
▸ registry.fedoraproject.org/vsc-cli-4ee3098167f24595df8161e2a6a226ab0bfe78567231ed22d21f0f0d45a5d006:latest
registry.access.redhat.com/vsc-cli-4ee3098167f24595df8161e2a6a226ab0bfe78567231ed22d21f0f0d45a5d006:latest
docker.io/library/vsc-cli-4ee3098167f24595df8161e2a6a226ab0bfe78567231ed22d21f0f0d45a5d006:latest
Issue Description
When building devcontainers, the
FROM
in the dynamic containerfile that is used references a newly tagged image, but theFROM
step prompts me for which registry to choose (which should've been localhost).When re-running the image name doesn't change, but I'm still prompted, so does not seem to be a race condition.
Steps to reproduce the issue
Steps to reproduce the issue
git clone -b feat/local-dev https://github.com/island-is/island.is
devcontainer up --workspace-folder .
Describe the results you received
Get promted.
Describe the results you expected
No prompt, and build continues
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
Running in a toolbox, but wrapping
podman
anddocker
with aflatpak-spawn --host
script. It has never caused issues.Additional information
No response