2021-10-17 06:36:30 +02:00
|
|
|
# docker save
|
|
|
|
|
|
|
|
> Exportiere eines oder mehrere Docker Images in ein Archiv.
|
2024-09-26 03:21:33 -07:00
|
|
|
> Weitere Informationen: <https://docs.docker.com/reference/cli/docker/image/save/>.
|
2021-10-17 06:36:30 +02:00
|
|
|
|
|
|
|
- Speichere ein Image über die Standardausgabe in ein Tar-Archiv:
|
|
|
|
|
2024-10-07 11:59:56 +02:00
|
|
|
`docker save {{image}}:{{tag}} > {{pfad/zu/datei.tar}}`
|
2021-10-17 06:36:30 +02:00
|
|
|
|
|
|
|
- Speichere ein Image in ein Tar-Archiv:
|
|
|
|
|
2024-10-07 11:59:56 +02:00
|
|
|
`docker save --output {{pfad/zu/datei.tar}} {{image}}:{{tag}}`
|
2021-10-17 06:36:30 +02:00
|
|
|
|
|
|
|
- Speichere alle Tags eines Images:
|
|
|
|
|
2024-10-07 11:59:56 +02:00
|
|
|
`docker save --output {{pfad/zu/datei.tar}} {{image_name}}`
|
2021-10-17 06:36:30 +02:00
|
|
|
|
|
|
|
- Speichere nur bestimmte Tags eines Images:
|
|
|
|
|
2024-10-07 11:59:56 +02:00
|
|
|
`docker save --output {{pfad/zu/datei.tar}} {{image_name:tag1 image_name:tag2 ...}}`
|