6

I want to download some images for a computer that has not internet.

My computer that have internet has NO DOCKER installed (old kernel) so it is not possible to use docker command to pull, save and export it to the other machine.

I'm looking for a way to download a docker image (like via wget, ...) and use it on my computer without Internet.

Youssouf Maiga
  • 6,701
  • 7
  • 26
  • 42
  • 2
    [Pulling docker images](http://stackoverflow.com/questions/22381442/pulling-docker-images) is a little dated, but there might be some ideas there. – Roman Nov 03 '16 at 16:00
  • 2
    Possible duplicate of [How to download docker images without using pull command?](https://stackoverflow.com/questions/37905763/how-to-download-docker-images-without-using-pull-command) – igal Dec 05 '17 at 12:49
  • The Moby contrib script worked for me: https://stackoverflow.com/a/49001969/908336 – Masood Khaari Mar 10 '20 at 13:17

2 Answers2

7

Yes that's possible. Docker has the features save and load.

Run this command on your machine with the image you want to copy to the other computer:

docker save myimage > myimage.tar

To load the image again run:

docker load < myimage.tar
k4l4m
  • 423
  • 2
  • 4
  • 11
0

If you don't have access to a machine supporting docker in any way what you can do is create a repository on quay.io with a dockerfile like

FROM myimage
...

quay actually allows to download images from the web panel whereas docker hub/store does not afaik.

untore
  • 603
  • 8
  • 16