1. List docker containers:
docker ps
2. Backup container
docker commit -p <container-ID> backup-name
3. The backup image will be listed in the docker images list:
docker images
4. Now backup the image as a tar file:
docker save -o backup-name.tar backup-name
Leave a Comment