Docker Community Forums

Share and learn in the Docker community.

Would saving a docker registry container and running it again cause loss of data?


(Josh12forma) #1

In order to copy a running docker container to a new host, it is possible to use docker commit to create a new image instance of a running container, then run it on the new host.

Would this procedure keep all images stored under the running docker registry container?
The other option (which I’m trying to avoid) would be to start a new empty docker registry container on the new host, then iteratively copy image-by-image to the new container.