Skip to content
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

testcontainers (sometimes) fails to pull image with podman #4440

Closed
mjurc opened this issue Sep 1, 2021 · 2 comments
Closed

testcontainers (sometimes) fails to pull image with podman #4440

mjurc opened this issue Sep 1, 2021 · 2 comments

Comments

@mjurc
Copy link

mjurc commented Sep 1, 2021

If a container specified in user code to be launched by testcontainers is not present in local repository with podman, the pull sometimes (50% chance locally) fails with the following message:

01:15:29.792 [docker-java-stream-529819944] DEBUG com.github.dockerjava.api.command.PullImageResultCallback - ResponseItem(stream=null, status=Downloading, progressDetail=ResponseItem.ProgressDetail(current=103418223, total=129109796, start=null), progress=null, id=4ffe534daa34, from=null, time=null, errorDetail=null, error=null, aux=null)
01:15:30.749 [docker-java-stream-529819944] DEBUG com.github.dockerjava.api.command.PullImageResultCallback - ResponseItem(stream=null, status=Download complete, progressDetail=ResponseItem.ProgressDetail(current=null, total=null, start=null), progress=null, id=4ffe534daa34, from=null, time=null, errorDetail=null, error=null, aux=null)
01:15:30.749 [docker-java-stream-529819944] INFO  🐳 [mongo:4.2.6] - Pulling image layers:  0 pending, 13 downloaded,  0 extracted, (118 MB/148 MB)
01:15:30.770 [docker-java-stream-529819944] DEBUG com.github.dockerjava.api.command.PullImageResultCallback - ResponseItem(stream=null, status=null, progressDetail=ResponseItem.ProgressDetail(current=null, total=null, start=null), progress=null, id=null, from=null, time=null, errorDetail=null, error=writing blob: adding layer with blob "sha256:4ffe534daa349b7d8b4a3eee9920bfa77e5a067f6c8698d81419fde9bb1f06d4": Error processing tar file(exit status 1): unexpected EOF, aux=null)
01:15:30.771 [docker-java-stream-529819944] INFO  🐳 [mongo:4.2.6] - Pull complete. 14 layers, pulled in 9s (downloaded 118 MB at 13 MB/s)
01:15:30.771 [main] DEBUG org.testcontainers.utility.PrefixingImageNameSubstitutor - No prefix is configured
01:15:30.771 [main] DEBUG org.testcontainers.utility.ImageNameSubstitutor - Did not find a substitute image for mongo:4.2.6 (using image substitutor: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor'))

If the container is present in local repository, this will not occur.

TC version: 1.15.2
podman version 3.3.0

@rnorth
Copy link
Member

rnorth commented Sep 2, 2021

This seems like the error is occurring on podman's side.

I'd suggest opening an issue with the podman team.

@kiview
Copy link
Member

kiview commented Oct 19, 2022

Closing in favor of #5998, which is more up-to-date and contains more context.

@kiview kiview closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants