Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to download Docker images without a direct internet connection

I see we can install tensorflow (with GPU) using Docker - here TensorFlow - which Docker image to use?

But how do I do this on a machine that has no external internet connection? Is there a way to first download the tensor flow image

b.gcr.io/tensorflow/tensorflow:latest-gpu: TensorFlow GPU binary image

and then copy it to local file space and "install" it from there?

like image 315
GavinBrelstaff Avatar asked Feb 10 '16 08:02

GavinBrelstaff


1 Answers

You can pull the image on a computer that have access to the internet.

sudo docker pull b.gcr.io/tensorflow/tensorflow:latest-gpu

Then you can save this image to a file

sudo docker save -o tensorflow_image.docker b.gcr.io/tensorflow/tensorflow:latest-gpu

Transfer the file on the offline computer (USB/CD/whatever) and load the image from the file:

sudo docker load < tensorflow_image.docker

Courtesy: https://serverfault.com/questions/701248/downloading-docker-image-for-transfer-to-non-internet-connected-machine

like image 113
a3.14_Infinity Avatar answered Oct 29 '22 21:10

a3.14_Infinity