显示所有镜像的tag
docker images |awk '{print $1":"$2}'
删除所有镜像
docker images |awk '{print "docker rmi "$1":"$2}' |sh docker images |awk '/library/{print "docker rmi "$1":"$2}' |sh
批量修改tag
docker images |sed 's@.*/@harbor.hub.com/library/@g' |awk 'NR>1{print "docker tag " $3" "$1":"$2}' |sh
批量推送到仓库
docker images |grep library |awk '{print "docker push "$1":"$2}' |sh