A menudo es necesario exportar imágenes en lotes, consulte el script
tag_names # Arreglo espejo
xxx / yyy / zzz-storage-: 1.0
xxx # Fábrica de espejos
yyy #Espacio espejo
zzz-storage-: 1.0 # nombre de la aplicación
#! / bin / bash tag_names = (xxx / yyy / zzz-: 1.0 xxx / yyy / zzz-storage-: 1.0 xxx / yyy / zzz-host-mrer: xxx / yyy / app-01: v1.1.0 xxx / yyy / app-02: v3.0.0 xxx / yyy / app-03: v1.0.0 xxx / yyy / app-04: v2.0.2 xxx / yyy / zzz-05er: 99.9-dev xxx / yyy / zzz-05.9- dev) para i en $ {tag_names [*]}; do new_tag = `echo $ i | cut -d" / "-f 3` docker save $ i> $ {new_tag} .tar done