-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using podman in gitlab ci, latest image is never pulled #9232
Comments
Just updated to podman 3.0 to test if this may be fixed, but the problem still persists. |
Thanks for checking! Do you know which REST endpoint the CI runner is using? |
The image is created via |
We are probably defaulting to pullifmissing? |
Yes, we are but we should be using |
The `images/create` endpoint should always attempt to pull a newer image. Previously, the local images was used which is not compatible with Docker and caused issues in the Gitlab CI. Fixes: containers#9232 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
The `images/create` endpoint should always attempt to pull a newer image. Previously, the local images was used which is not compatible with Docker and caused issues in the Gitlab CI. Fixes: containers#9232 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
/kind bug
Description
When using podman as docker replacement in gitlab ci, latest images are never pulled.
Steps to reproduce the issue:
Setup a new docker-runner with docker executor, using podman via podman.socket
Execute a CI run on this runner using a simple image
Update the Image from another host, so that no local version is present
Execute another CI run -> the new image is not pulled
Describe the results you received:
The CI-runs always use the existing local image
Describe the results you expected:
Newer images usig a latest-tag are used.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes, latest stable from upstream repo was used.
Additional environment details (AWS, VirtualBox, physical, etc.):
Tested in vagrant/ubuntu and vmware/debian10
I used the following Dockerfile:
Testimage build and pushed via
If I execute a
podman pull
on the runner-host, I get the correct image, if the the podman service is used via the gitlab runner, it is not.Already added some infos at https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27270#note_498440333
The text was updated successfully, but these errors were encountered: