如何在没有直接互联网连接的情况下下载Docker图像 [英] How to download Docker images without a direct internet connection

查看:147
本文介绍了如何在没有直接互联网连接的情况下下载Docker图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到我们可以使用Docker安装tensorflow(使用GPU) - 这里是 TensorFlow - 其中Docker图像使用?

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?

推荐答案

您可以在有权访问互联网的计算机上拉图像。

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

在离线时传输文件计算机(USB / CD /任何),并从文件加载图像:

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

sudo docker load < tensorflow_image.docker

礼貌:https://serverfault.com/questions/701248/downloading-docker-image-for-transfer-to-non-internet-连接机器

这篇关于如何在没有直接互联网连接的情况下下载Docker图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆