NOTE: if you are using the docker without the http://azk.io installed, use
docker
instead ofadocker
.
adocker kill $(adocker ps -q | tr '\r\n' ' ')
adocker rm -f $(adocker ps -f status=exited -q | tr '\r\n' ' ')
In this example the filter is azkbuild
:
adocker rmi $(adocker images | grep "azkbuild" | awk '{print $3}' | tr '\r\n' ' ')
adocker rmi $(adocker images -q -f dangling=true | tr '\r\n' ' ')
-
Join lines:
tr '\r\n' ' '