remove_images.sh 453 B

1234567891011
  1. #!/usr/bin/env bash
  2. paddlex_version="$(cat ../../../paddlex/.version)"
  3. for device_type in 'gpu' 'cpu'; do
  4. version="$(cat "${device_type}_version.txt")"
  5. docker rmi \
  6. "ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:paddlex${paddlex_version%.*}-${device_type}" \
  7. "ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:${version}-${device_type}" \
  8. "ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:latest-${device_type}"
  9. done