我已安装 docker
在没有连接到 Internet 的系统中运行图像 docker
, 我不得不从 this 下载一个简单的图像和来自另一个系统。然后我将此图像放在我的离线系统中的以下路径中:C:\Users\Public\Documents\Hyper-V\Virtual hard disks
但是当我运行时 docker run hello-world
在 cmd 我看到这条消息:
Unable to find image 'hello-world:latest' locally
您可以通过从可以访问互联网的任何其他机器导出 docker 图像,以简单的方式完成此操作,而无需弄乱文件夹:
$docker pull hello-world
$ docker save --output hello-world.tar {your image name or ID}
$docker load --input hello-world.tar
关于windows - 如何在不连接互联网的情况下运行 docker 镜像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48125169/
欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) | Powered by Discuz! X3.4 |