?
本文檔使用 php中文網(wǎng)手冊 發(fā)布
將一個或多個圖像保存到 tar 歸檔文件(默認流式傳輸?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)輸出流的存儲庫。包含所有父層和所有標(biāo)記+版本,或指定repo:tag
,對于所提供的每一個論點。
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
您甚至可以選擇圖像存儲庫的特定標(biāo)記。
$ docker save -o ubuntu.tar ubuntu:lucid ubuntu:saucy