How to copy Docker images from one host to another without using a repository

前端 未结 15 1798
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 13:37

How do I transfer a Docker image from one machine to another one without using a repository, no matter private or public?

I create my own image in VirtualBox, and wh

15条回答
  •  感动是毒
    2020-11-22 13:59

    For a flattened export of a container's filesystem, use;

    docker export CONTAINER_ID > my_container.tar

    Use cat my_container.tar | docker import - to import said image.

提交回复
热议问题