作用:
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