Skip to content

Docker PS

· Upd. By Jasper Frumau DevOps

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.

NB https://docs.docker.com/engine/reference/commandline/ps/#formatting

Done Managing Your Own Server?

We run production WordPress and WooCommerce stacks on Hetzner using Trellis — Nginx, PHP 8.3, Redis, automated deployments, and Bedrock structure. No shared hosting, no page builders, no surprises.

  • Trellis + Bedrock on Hetzner EU (Frankfurt / Helsinki)
  • Nginx + FastCGI caching + Redis object cache
  • Automated deployments via Ansible, SSL via Let’s Encrypt
  • From €49/month — or €65/hour for one-off server work

Comments are closed for this post.