[FAQ] Docker查询出所有的停止容器并移除
$ docker rm `docker container ls -a --filter "status=exited" | awk '{print $1}' | sed '1,1d' | xargs`
Ref:phvia/dkc
Ref:[Shell] 字符截取命令:cut, printf, awk, sed
$ docker rm `docker container ls -a --filter "status=exited" | awk '{print $1}' | sed '1,1d' | xargs`
Ref:phvia/dkc
Ref:[Shell] 字符截取命令:cut, printf, awk, sed