Can I move Docker containers (NOT Docker images)?

I found this information on the Docker Website

Docker containers can start, start, stop, move and delete.

As far as I know, Docker-Images can be moved, but Docker-Containers cannot. But the information above is clearly below the Docker Containers heading.

So, I would like to know if containers can be moved or not (and if not: what does it mean "docker containers can be moved").

Thank!

+2
docker
Dec 29 '15 at 16:59
source share
1 answer

You can save the container with

docker save see https://docs.docker.com/reference/commandline/cli/#save

and restore them elsewhere with

docker load see https://docs.docker.com/reference/commandline/cli/#load (this is just a tar file)

but keep in mind that this will not save container volumes

https://docs.docker.com/userguide/dockervolumes/#data-volumes

and related volumes from

https://docs.docker.com/userguide/dockervolumes/#creating-and-mounting-a-data-volume-container

There is a project for this.

Docker-backup https://github.com/discordianfish/docker-backup

+5
Dec 29 '15 at 17:29
source share



All Articles