Docker PS

Docker PS in general is pretty awful in the terminal. It is way too long. It simply often does not fit and shows way too much information. So what can be done about this?

Go Templating

Well, there is Go templating to print what you need to have and you could turn that into local aliases. Basic syntax is:

docker ps --format

So when you use:

docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}"

You show all containers with ID, Name and Port.


Jasper Frumau

Jasper has been working with web frameworks and applications such as Laravel, Magento and his favorite CMS WordPress including Roots Trellis and Sage for more than a decade. He helps customers with web design and online marketing. Services provided are web design, ecommerce, SEO, content marketing. When Jasper is not coding, marketing a website, reading about the web or dreaming the internet of things he plays with his son, travels or run a few blocks.