-
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
API not compatible with Docker when pulling image with tag in both fromImage
and tag
#23938
Comments
@inknos could you take a look at this ? |
inknos
added a commit
to inknos/podman
that referenced
this issue
Oct 7, 2024
Podman handles /images/create better when fromImage and Tag are specified. Now the tag/digest value provided in Tag will replace the one in fromImage Fixes: containers#23938 Signed-off-by: Nicola Sella <[email protected]>
inknos
added a commit
to inknos/podman
that referenced
this issue
Oct 9, 2024
Podman handles /images/create better when fromImage and Tag are specified. Now the tag/digest value provided in Tag will replace the one in fromImage Fixes: containers#23938 Signed-off-by: Nicola Sella <[email protected]>
inknos
added a commit
to inknos/podman
that referenced
this issue
Oct 9, 2024
Podman handles /images/create better when fromImage and Tag are specified. Now the tag/digest value provided in Tag will replace the one in fromImage Fixes: containers#23938 Signed-off-by: Nicola Sella <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
The Podman API daemon handles the
/images/create
endpoint differently than Docker. The documentation specifies two parameters where the tag can appear when pulling an image:fromImage
- Name of the image to pull. The name may include a tag or digest.tag
- Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled.It is not clear to me whether it is a violation of the API to include the tag in both places or, if it is not, what the expected behavior is. When it is specified in both places, Podman fails to normalize the name to a valid format, whereas Docker is more graceful. Docker just takes the value from
tag
, potentially overriding any value infromImage
(treating?fromImage=image%3Aanything&tag=latest
the same as?fromImage=image&tag=latest
).Steps to reproduce the issue
Describe the results you received
Nothing was pulled because the image name got normalized to an invalid format:
The daemon logs the following:
Describe the results you expected
I would expect this this unusual use of the API to be handled more gracefully, like Docker does:
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
Fully updated Rocky Linux 9.4 on an ESXi-hosted VM.
Additional information
Issue manifests with Kestra (issue 4845).
The text was updated successfully, but these errors were encountered: