Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

删除docker进程不再使用的image

Code Block
languagebash
docker image prune

通过grep过滤批量删除image

Code Block
languagebash
docker images | grep 'ccr.ccs.tencentyun.com/cdb.khaos' | awk '{print $3}' | sort | uniq | xargs docker rmi

结合-f参数强制性删除image

Image Added



Panel
titleContent Menu

Table of Contents