Merge pull request #857 from nwinkler/docker-archive-content

Added docker-archive-content function
pull/858/head
Nils Winkler 2016-12-12 15:24:15 +01:00 committed by GitHub
commit 1490b67d28
1 changed files with 11 additions and 0 deletions

View File

@ -61,3 +61,14 @@ function docker-runtime-environment() {
group 'docker'
docker run "$@" env
}
function docker-archive-content() {
about 'show the content of the provided Docker image archive'
group 'docker'
param '1: image archive name'
example 'docker-archive-content images.tar.gz'
if [ -n "$1" ]; then
tar -xzOf $1 manifest.json | jq '[.[] | .RepoTags] | add'
fi
}