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

前端 未结 15 1741
爱一瞬间的悲伤
爱一瞬间的悲伤 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 14:13

    First save the Docker image to a zip file:

    docker save  | gzip > .tar.gz
    

    Then load the exported image to Docker using the below command:

    zcat .tar.gz | docker load
    

提交回复
热议问题