Docker compatibility: pull of uncached/new image has final status that doesn't indicate success to docker-java #10258
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
This issue only happens for images that podman doesn't already have cached. If podman already has the image, it returns a final status that
docker-java
interprets as success.Describe the results you received:
docker-java fails with this exception:
com.github.dockerjava.api.exception.DockerClientException: Could not pull image: Pull complete
Describe the results you expected:
No exception should be thrown
Additional information you deem important (e.g. issue happens only occasionally):
The problem is that podman's last status when pulling an image isn't one of that statuses that
docker-java
checks for, which are:Download complete
Image is up to date
Downloaded newer image
this image was pulled from a legacy registry
: downloaded
https://github.com/docker-java/docker-java/blob/3.2.7/docker-java-api/src/main/java/com/github/dockerjava/api/model/PullResponseItem.java#L33
I ran the same test with Docker and with Podman so I could compare the data requests/responses.
Docker transcript:
docker.log
Podman transcript:
podman.log
Notice that docker's pull transcript ends with a status of
Status: Downloaded newer image for alpine:3.5
which matches one o the patternsdocker-java
looks for:Which
docker-java
interprets as success.However, podman's pull transcript ends with a status of
Pull complete
, which is not one of the statuses thatdocker-java
considers to be successful: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? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Fedora 34 system
The text was updated successfully, but these errors were encountered: