-
Notifications
You must be signed in to change notification settings - Fork 549
Docker pulling wrong image os and repeating download #857
Comments
What happens if you Docker-client is sending the pull request directly to the daemon, so I would be surprised to see if there is something happening within docker-client and I think it is more likely related to your docker daemon / the status of |
Maybe it has to do with my DockerClient init because I wasn't sure how to build it: docker = DefaultDockerClient.builder().uri(URI.create("unix:///var/run/docker.sock")).build(); |
I made a temporary fix, still not sure what is causing the error. Process pull = Runtime.getRuntime().exec("docker pull redis");
pull.waitFor(); |
I have to admit I haven't seen anything like "image operating system "windows" cannot be used on this platform" before. Do you have any sort of proxy in front of Docker Hub? Does it happen consistently if you do the pull from DockerClient, especially if you docker rmi the image first? Since the client just invokes an API on the docker daemon that tells it to pull the image you ask for, I'm not sure how anything in docker-client could be causing this. It should be possible to look at the logs within docker daemon to see the actual command received by the API for the pull. |
I do not have a proxy in front of docker, I just normally installed it. And yes it happens consistently 100% of the time, even after rmi. I will look into finding some logs if I have time between my tickets. Thanks for your work. |
Sorry for the delay, here is the docker daemon log
And this is when I use the docker-client
|
@AUTplayed thank you for the extra logs. I have a theory: when When no What happens if you only pull the actual image tag you wish to use? i.e. When you do |
I think the problematic image from the log output is |
On Docker for Mac:
|
Huh, when I use |
I created #873 to better describe the root issue there. Thanks for the report and for having the patience to help get to the bottom of it! |
Description
docker.pull("redis")
redownloads multiple times and finally fails with following error:com.spotify.docker.client.exceptions.ImagePullFailedException: Image pull failed: redis: ProgressMessage{id=null, status=null, stream=null, error=image operating system "windows" cannot be used on this platform, progress=null, progressDetail=null}
How to reproduce
I'm using Spring boot to start my application, to reproduce it's just docker.pull() to me.
What do you expect
only a single download and no exception
What happened instead
see description
Software:
Full backtrace
The text was updated successfully, but these errors were encountered: