How to share my Docker-Image without using the Docker-Hub?

后端 未结 4 2124
离开以前
离开以前 2020-12-12 08:56

I\'m wondering where Docker\'s images are exactly stored to in my local host machine. Can I share my Docker-Image without using the Docker-Hub or a Docker

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-12 09:31

    Based on this blog, one could share a docker image without a docker registry by executing:

    docker save --output latestversion-1.0.0.tar dockerregistry/latestversion:1.0.0
    

    Once this command has been completed, one could copy the image to a server and import it as follows:

    docker load --input latestversion-1.0.0.tar
    

提交回复
热议问题