зеркало из https://github.com/docker/hub-tool.git
Added OS/ARCH column which lists all the platforms
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
This commit is contained in:
Родитель
7d7a94f47b
Коммит
025c710430
|
@ -57,6 +57,19 @@ var (
|
|||
}
|
||||
return units.HumanSize(float64(size))
|
||||
}},
|
||||
{
|
||||
"OS/ARCH", func(t hub.Tag) string {
|
||||
var platforms []string
|
||||
for _, image := range t.Images {
|
||||
platform := fmt.Sprintf("%s/%s", image.Os, image.Architecture)
|
||||
if image.Variant != "" {
|
||||
platform += "/" + image.Variant
|
||||
}
|
||||
platforms = append(platforms, platform)
|
||||
}
|
||||
return strings.Join(platforms, ",")
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче