docker save说明:将指定镜像保存成 tar 归档文件,以tar和tar.gz结尾都行。 语法: docker save [OPTIONS] IMAGE [IMAGE...]
OPTIONS 说明: [root@harbor tmp]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEredis v1 cc6cf492f595 6 hours ago 113MBbusybox latest beae173ccac6 3 months ago 1.24MBnginx latest 605c77e624dd 3 months ago 141MBredis latest 7614ae9453d1 3 months ago 113MB[root@harbor tmp]# docker save -o nginx.tar nginx:latest[root@harbor tmp]# lsnginx.tar[root@harbor tmp]# docker save -o nginx.tar.gz nginx:latest[root@harbor tmp]# lsnginx.tar nginx.tar.gz docker load说明:导入使用 下载地址: 基于Apache 一文学会docker |