【问题标题】:Can you download Docker images with no Docker in the VM?你能在 VM 中下载没有 Docker 的 Docker 镜像吗?
【发布时间】:2020-09-22 12:01:49
【问题描述】:

我需要能够在不允许安装 Docker 的 Linux VM 中下载 Docker 映像。这可能吗?

【问题讨论】:

    标签: docker docker-machine


    【解决方案1】:

    您可以使用 docker 将 Docker 映像作为 tar 文件保存在计算机中(您总是需要 docker 才能使用注册表。即 dockerhub)。像这样保存它:

    docker save -o <path to generated tar file> <image name>:<image tag>
    

    然后使用 cp 或 scp 复制文件

    或者您可以使用之前在此问题中解释过的 moby project 之类的东西

    How do I download Docker images without using the pull command?

    【讨论】:

    • 谢谢。 Moby 看起来很有前途!
    猜你喜欢
    • 1970-01-01
    • 2021-09-07
    • 2015-05-19
    • 2016-12-13
    • 1970-01-01
    • 1970-01-01
    • 2021-09-23
    • 1970-01-01
    • 2017-12-18
    相关资源
    最近更新 更多