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

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

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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