Backup and Restore Docker Image

To backup the docker image, run

docker save -o ~/IMAGE_NAME.tar IMAGE_NAME

To restore a container, run

docker load -i ~/IMAGE_NAME.tar

Backup and Restore a Docker Container

Advertisement

To backup, run

docker export -o CONTAINER_NAME.tar CONTAINER_NAME

To restore, run

docker import CONTAINER_NAME.tar serverok/CONTAINER_NAME:2.0

docker

Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement