#!/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 3;done
${i_name##*/} 删除 "/" 左边的内容