Quick Tip: List docker images sorted by size

The docker image ls command has an option for filtering output but what if we want to sort the images to find the really hefty ones? You know, the ones that might need to go the way of Old Yeller. Huh? What’s that, docker? You can’t do that. If you want something done right… It ain’t pretty but it works. docker image ls --format "{{.Repository}}:{{.Tag}} {{.Size}}" | \ awk '{if ($2~/GB/) print substr($2, 1, length($2)-2) * 1000 "MB - " $1 ; else print $2 " - " $1 }' | \ sed '/^0/d' | \ sort -n Side Note [Read More]

Deploying a dockerized two-tier app on Kubernetes

For a great deal of developers, myself included, doing something is the preferred method of learning as opposed to reading how to do it. When I was wrapping my head around using kubernetes to manage my docker containers, I found that creating a deployment from scratch was invaluable. I’d like to walk you through that deployment and explain everything along the way. Before we jump in, you’ll need to have: [Read More]