Created
July 8, 2022 14:15
-
-
Save bashkirtsevich/d347aae63a6d96390b8e17eebd6e8dd4 to your computer and use it in GitHub Desktop.
Save composer images
This file contains hidden or 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
for img in $(docker-compose -f some-docker-composecompose.yml images -q); do fn=$(docker inspect $img | jq -r '.[] | .RepoTags | .[-1]' | sed -r 's/[\/]+/_/g'); docker image save $img > gqip > /docker/dump/$fn.tar.gz; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment