Closed milouk closed 1 month ago
Does gitlab.com search on their shared runners for the image locally instead of pulling it from remote?
@milouk,
This example might be relevant for your usecase.
Another approach is to setup a local registry
docker run -d -p 127.0.0.1:5000:5000 registry:2
and in .gitlab-ci-local-variables.yml
---
CI_REGISTRY: "127.0.0.1:5000"
then
gitlab-ci-local ...
@milouk Feel free to leave a clarification or edit your description. Just ping me if you want the issue reopened.
Minimal .gitlab-ci.yml illustrating the issue
Expected behavior My Dockerfile includes the following line:
COPY --from=registry.docker.mycompany.com/app/mybinary:v1 /tmp/dist/ /tmp/dist/
I don't have pull access to registry.docker.mycompany.com however, i have the image locally in my pc. I would expect instead of trying to fetch remotely first, to search locally for an image with a matching tag
Host information MacOS M1 gitlab-ci-local 4.46.1
Containerd binary docker