Member-only story
Master Docker: Essential Commands for Everyday Development
Docker has become a must-have tool for developers. But with so many commands, it can be hard to know which ones are most useful. In this guide, we’ll look at the most helpful Docker commands that will make your daily work easier.
Basic Docker Commands
Let’s start with the commands you’ll use almost every day:
1. Check Docker Version
docker --version
This shows what version of Docker you’re using. It’s helpful when you need to make sure you have the latest updates.
2. See Running Containers
docker ps
This shows all containers that are running right now. If you want to see all containers (even stopped ones), use:
docker ps -a
3. Pull Images
docker pull ubuntu
This downloads a Docker image from Docker Hub. Think of it like downloading an app from an app store. You can also pull specific versions:
docker pull ubuntu:20.04
4. Run Containers
docker run ubuntu