0 votes
in Docker by
How can you backup Docker Images?

1 Answer

0 votes
by

To backup Docker images, we can either upload them onto a registry like Docker Hub or convert them into a tarball archive file. We can upload a Docker image to a registry using the Docker push command mentioned below:

$ docker push <image-name>

To save the Docker image into an archived tarball file, we can use this command:

$ docker save -o <name-of-tar-file> <name-of-container>
...