📜  清理未标记的 docker 图像 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:14.263000             🧑  作者: Mango

代码示例3
# Remove an individual container by ID or name.
# Use "-v" or "--volumes" to remove associated volumes.
# Use "-f" or "--force" to remove running containers.
docker rm -vf b0479f9d1ea4
docker rm --volumes --force ol7_ords_con

# Remove all the containers matching the "ps" output.
docker rm -vf $(docker ps -a -q --filter "status=exited")