使用命令删除旧的 docker 镜像后
docker images --no-trunc --format "{{.ID}} {{.CreatedSince}}" | grep " months" | awk "{ print $1 }" | xargs --no-run-if-empty docker rmi || true
在响应中,除了远程图像之外,还会发出以下内容:
Error: No such image: 2
Error: No such image: months
Error: No such image: ago
Error: No such image: 2
Error: No such image: months
Error: No such image: ago
Error: No such image: 2
Error: No such image: months
Error: No such image: ago
Error: No such image: 2
Error: No such image: months
Error: No such image: ago
Error: No such image: 2
Error: No such image: months
Error: No such image: ago
Error: No such image: 2
Error: No such image: months
Error: No such image: ago
Error: No such image: 2
Error: No such image: months
Error: No such image: ago
Error: No such image: 2
Error: No such image: months
Error: No such image: ago
Error: No such image: 2
Error: No such image: months
Error: No such image: ago
Error: No such image: 2
Error: No such image: months
Error: No such image: ago
Error: No such image: 4
Error: No such image: months
Error: No such image: ago
Error: No such image: 4
Error: No such image: months
Error: No such image: ago
Error: No such image: 4
Error: No such image: months
Error: No such image: ago
Error: No such image: 4
Error: No such image: months
Error: No such image: ago
Error: No such image: 4
Error: No such image: months
Error: No such image: ago
依此类推。你能告诉我为什么他试图找到这些名字的图像,我怎样才能摆脱这个?