Merge pull request #33 from infosiftr/SharedTags

Add SharedTags (so that "docker run hello-world" can work on Windows too!)
This commit is contained in:
yosifkit 2017-09-12 15:10:14 -07:00 committed by GitHub
commit e26832af4f
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,8 @@ arches=( "${arches[@]%"/$image/hello"}" )
echo
cat <<-EOE
Tags: latest
Tags: linux
SharedTags: latest
Architectures: $(join ', ' "${arches[@]}")
EOE
for arch in "${arches[@]}"; do
@ -68,6 +69,7 @@ if [ "${#winArches[@]}" -gt 0 ]; then
echo
cat <<-EOE
Tags: nanoserver
SharedTags: latest
Architectures: $(join ', ' "${winArches[@]/#/windows-}")
EOE
for arch in "${winArches[@]}"; do