function clear_container_image(){
  ssh -o StrictHostKeyChecking=no root@$1 "docker system prune -f"
}
ips=(192.168.1.172 192.168.1.178 192.168.1.176)
for ip in "${ips[@]}"; do
  echo $ip
  clear_container_image $ip
done
                     
                     最后修改:2024 年 05 月 11 日
                 
© 允许规范转载