docker image save

docker image save

Description

Save one or more images to a tar archive (streamed to STDOUT by default)

Usage

docker image save [OPTIONS] IMAGE [IMAGE...]

Options

Name, shorthand Default Description
--output, -o Write to a file, instead of STDOUT

Parent command

Command Description
docker image Manage images

Examples

Save all fedora repository images to a fedora-all.tar and save the latest fedora image to a fedora-latest.tar:

$ docker image save fedora > fedora-all.tar

$ docker image save --output=fedora-latest.tar fedora:latest

$ ls -sh fedora-all.tar

721M fedora-all.tar

$ ls -sh fedora-latest.tar

367M fedora-latest.tar

© 2013–2016 Docker, Inc.
Licensed under the Apache License, Version 2.0.
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.
Docker, Inc. and other parties may also have trademark rights in other terms used herein.
https://docs.docker.com/engine/reference/commandline/image_save/

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部