Docker for Girls - Understanding docker ps Once and For All
By Tatiana Mikhaleva · Developer Advocate · Docker Captain · IBM Champion
Hey girls! 💖
If you’re as passionate about IT and Docker as I am but sometimes find it a bit complicated, don’t worry! Today, I’ll explain the super-important docker ps command in a way that anyone can understand! 😉
What is docker ps?
This command shows all the containers on your computer. It tells you which ones are running, which ones are stopped, and what their settings are. Think of docker ps as your list of all containers—just like a list of open tabs in your browser. 🖥️
When Should You Use docker ps?
You use docker ps when you want to:
- See which containers are currently running.
- Find out which containers have stopped.
- Get the ID or name of a container.
- Check which ports are open.
- View the size of a container.
- Check if a container is healthy (yes, containers can have bad days too!).
How to Use docker ps (Examples)
The Simplest Command:
docker psShows only running containers.
Want to See All Containers, Even Stopped Ones?
docker ps -aNow you can see both running and stopped containers. The STATUS column will show why a container stopped (e.g., due to an error or just being turned off).
How to View the Last Created Container?
docker ps --latestGreat for checking if the most recently created container is working properly.
How to Check How Much Space a Container is Using?
docker ps -sThis helps when your disk space is running low. 🧹
How to See Only Container IDs?
docker ps -qUseful when you need container IDs without extra details.
Filtering docker ps
To quickly find the container you need, use filters:
🔍 Find a container with a specific label:
docker ps --filter label=app=my-app🔍 Show containers created before a specific one:
docker ps --filter before=my-app-container🔍 Find containers using a specific volume:
docker ps --filter volume=my-volume🔍 See containers in a specific network:
docker ps --filter network=my-networkHow to Change docker ps Output?
By default, docker ps outputs a table, but you can customize what is displayed:
docker ps --format 'table {{.ID}}\t{{.Image}}\t{{.Status}}'This will show only the container ID, image, and status.
Want JSON format? Easy:
docker ps --format jsonPro Tips!
✨ Don’t forget about -a: If a container stops, docker ps won’t show it by default, so use docker ps -a.
✨ Set up your favorite commands: For convenience, create aliases for frequently used commands.
✨ Monitor container sizes: Keep only the necessary containers to avoid wasting disk space.
Conclusion
The docker ps command is your go-to tool for managing containers. Now you know how to check which containers are running, which have stopped, and how to filter them. Easy, right? 😉
I hope this guide helped! If you have any questions, feel free to ask—I’m always happy to chat about Docker. 💻💖
See you soon, IT girl! 🚀
Related Posts
- 1How to Secure AI Agents in Production: IBM's Six-Phase FrameworkDevOps & Cloud · Teams secure AI agents like normal software, and production breaks. Here's IBM and Anthropic's six-phase framework for securing them, phase by phase.
- 2Your AI Agent Doesn't Need a Better Prompt. It Needs a CeilingDevOps & Cloud · A prompt is not a security control. It's a wish. The Vault → Sentinel → MCP → ADLC → watsonx Orchestrate stack that gives AI agents a hard ceiling — and why IBM consolidating HashiCorp made the whole thing boring, in the best possible way.
- 3CNCF Q1 2026 Report — Why Feature Flagging Is the Hidden Gateway to Cloud Native MaturityDevOps & Cloud · CNCF Q1 2026 cloud native report analysis. Why feature flagging is the bridge from mainstream to advanced engineering practice, with exclusive commentary from the report's author.
- 4AI SRE Joined My On-Call — A Beginner-Friendly Walkthrough of RootlyDevOps & Cloud · What an AI SRE actually does on call. A hands-on walkthrough of Rootly — how it observes, advises, and (when you let it) acts. With a real look at the four-level trust model.
Random Posts
- 1Kubernetes Is No Longer Number One — The REAL 2025 Cloud Native Report (CNCF x SlashData)DevOps & Cloud · Kubernetes is no longer number one. The 2025 CNCF x SlashData report reveals the real cloud-native trends — backend growth, DevOps adoption, AI gaps, and the technologies developers actually use.
- 2Docker Compose Explained - Imagine Running Your Own CafeDevOps & Cloud · Docker Compose explained with a fun cafe analogy! Learn how to run and deploy apps easily with containers—perfect for beginners and IT pros alike.
- 3How Docker Works Under the Hood - A Girly Tech Deep DiveDevOps & Cloud · Under the Hood of Docker - What Really Happens When You Run docker run?
- 4Stop Lying About Your Backups — Zero-Trust Recovery with PlakarDevOps & Cloud · Learn how to master Terraform tags for cloud resource management, automation, and cost tracking. Discover best practices, default tags, and merging strategies!