Docker Start
systemctl start docker # Linux open -a Docker # macOS
Docker Version Control
docker --version
Container Commands
Listing running containers --> docker ps
List all containers (Running and Stopped) --> docker ps -a
Running a Container --> docker run
Images Commands
Listing Docker images --> docker images
Pulling an image via Docker Hub --> docker pull
Container Management
Viewing Container Logs --> docker logs
Docker Networks Commands
Listing Networks --> docker network ls
Creating a Network --> docker network create
Docker Compose
Starting a Service in Detached Mode --> docker-compose up -d Stopping services --> docker-compose down Create and launch container --> docker-compose up --build
Audit and Monitoring
Inspecting Container Details --> docker inspect
Docker Volumes
Volume Listing --> docker volume ls
Creating Volume --> docker volume create
💡 PRO TIP
Use the ''docker system prune'' command to remove unused containers, networks and images.