25

Is there a way where I can manually download a docker image?

I have pretty slow Internet connection and for me is better to get a link of the image and download it elsewhere with better Internet speed,

How can I get the direct URL of the image managed by docker pull?

2 Answers 2

22

It's possible to obtain that, but let me suggest two other ways!

  1. If you can connect to a remote server with a fast connection, and that server can run Docker, you could docker pull on that server, then you can docker save to export an image (and all its layers and metadata) as tarball, and transfer that tarball any way you like.

  2. If you want to transfer multiple images sharing a common base, the previous method won't be great, because you will end up transferring multiple tarballs sharing a lot of data. So another possibility is to run a private registry e.g. on a "movable" computer (laptop), connect it to the fast network, pull images, push images to the private registry; then move the laptop to the "slow" network, and pull images from it.

If none of those solutions is acceptable for you, don't hesitate to give more details, we'll be happy to help!

4
  • 1
    I cant install docker where I plan to download the image, so that's why I would like to find out the direct URLof the image tar Mar 14, 2014 at 0:11
  • Sorry for being very curious, but -- why can't you install Docker elsewhere? No root access? Or too old kernel? Because you could install Docker and run it just to pull the images; that shouldn't require fancy kernel features.
    – jpetazzo
    Mar 14, 2014 at 23:34
  • 1
    Elsewhere is a friend who has a fast internet connection on his job and windows, he will be making a favor so is too much to ask for installing linux and docker; after work I would go and grab the tar on his home, yaiks! Mar 15, 2014 at 1:59
  • 4
    Installing docker and using docker save and docker import did the trick, thanks Mar 19, 2014 at 13:53
19
+50

You could pull down the individual layers with this: https://github.com/samalba/docker-registry-debug

Use the curlme option.

Reassembling the layers into an image is left as an exercise for the reader.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.