mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-17 17:49:37 +00:00
Update cheatsheets
This commit is contained in:
25
docker-save
Normal file
25
docker-save
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker save
|
||||
|
||||
> Export Docker images to archive.
|
||||
> More information: <https://docs.docker.com/engine/reference/commandline/save/>.
|
||||
|
||||
- Save an image by redirecting `stdout` to a `tar` archive:
|
||||
|
||||
`docker save {{image}}:{{tag}} > {{path/to/file.tar}}`
|
||||
|
||||
- Save an image to a `tar` archive:
|
||||
|
||||
`docker save --output {{path/to/file.tar}} {{image}}:{{tag}}`
|
||||
|
||||
- Save all tags of the image:
|
||||
|
||||
`docker save --output {{path/to/file.tar}} {{image_name}}`
|
||||
|
||||
- Cherry-pick particular tags of an image to save:
|
||||
|
||||
`docker save --output {{path/to/file.tar}} {{image_name:tag1 image_name:tag2 ...}}`
|
||||
Reference in New Issue
Block a user