摘要: #!/bin/bash id=`docker images |grep -v REPOSITORY |awk '{print $1}'` for i_name in $id;do echo $i_namedocker save -o ${i_name##*/}.tar.gz $i_namesleep 阅读全文
posted @ 2022-07-15 15:15 WH·xiao 阅读(164) 评论(0) 推荐(0) 编辑
摘要: grep 筛选信息 awk 截取列信息 docker images |grep -v REPOSITORY |awk '{print $1}' cut 截取字符串信息 docker images |grep -v REPOSITORY |awk '{print $1}'|cut -d "/" -f 阅读全文
posted @ 2022-07-15 15:02 WH·xiao 阅读(1066) 评论(0) 推荐(0) 编辑