?
This document uses PHP Chinese website manual Release
將一個(gè)或多個(gè)圖像保存到 tar 歸檔文件(默認(rèn)流式傳輸?shù)? STDOUT)
docker save [OPTIONS] IMAGE [IMAGE...]
Name, shorthand | Default | Description |
---|---|---|
--output, -o | Write to a file, instead of STDOUT |
Command | Description |
---|---|
docker | The base command for the Docker CLI. |
生成標(biāo)準(zhǔn)輸出流的存儲(chǔ)庫(kù)。包含所有父層和所有標(biāo)記+版本,或指定repo:tag
,對(duì)于所提供的每一個(gè)論點(diǎn)。
docker load
...$ docker save busybox > busybox.tar $ ls -sh busybox.tar2.7M busybox.tar $ docker save --output busybox.tar busybox $ ls -sh busybox.tar2.7M busybox.tar $ docker save -o fedora-all.tar fedora $ docker save -o fedora-latest.tar fedora:latest
您甚至可以選擇圖像存儲(chǔ)庫(kù)的特定標(biāo)記。
$ docker save -o ubuntu.tar ubuntu:lucid ubuntu:saucy