Most Frequently Used Linux Commands
AWK
containers = `docker ps -a | awk {'print $1'}`
Lets say you want to delete all the docker containers ins the system, you could use the awk command like -
docker ps -a | awk {'print $1'}
Take it a variable
now-
for container in $containers; do docker rm $container; done
Comments
Post a Comment