1、将容器生成镜像
docker commit -p e2882bb3b904 keyan-42-backup-20230522
2、将镜像保存为tar文件
docker save -o keyan-42-backup-20230522.tar keyan-42-backup-20230522
3、恢复
docker load -i keyan-42-backup-20230522.tar
标签:容器,tar,备份,42,keyan,20230522,docker,backup From: https://www.cnblogs.com/dwj192/p/17421922.html