Docker命令之:save命令
来源:互联网 发布:名媛风的淑女打扮知乎 编辑:程序博客网 时间:2024/06/06 02:35
作用:
Save one or more images to a tar archive (streamed to STDOUT by default)保存一个或多个镜像到tar归档文件(默认保存到标准输出流)
语法:
Usage: docker save [OPTIONS] IMAGE [IMAGE...]
参数:
-o, --output string Write to a file, instead of STDOUT写入到文件中,而不是标准输出流
实例:
- 把镜像hyperledger/fabric-orderer:latest以文件形式保存到/images/下,并命名为fabric-order.1.0.1.tar
docker save -o /images/fabric-order.1.0.1.tar hyperledger/fabric-orderer:latest
阅读全文