Created
September 8, 2018 07:03
-
-
Save nwtgck/3bf59f21f133d85afd991986899354a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# Backup purpose | |
docker images --format="container:{{.Repository}}:{{.Tag}}" | sed 's/container://g' | grep -v "<none>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Backup docker image list
Restore image from the list
cat docker_images.txt | xargs -t -L 1 docker pull
(from: https://stackoverflow.com/a/199270/2885946)
(from: https://qiita.com/shin1x1/items/83cdbf1023433dcc45e7)