docker ps # running containers
docker ps -a # all containers including stopped
docker images # local images
docker pull <image> # pull from registry
docker run -d -p 8080:80 nginx # run detached, map port 8080→80
docker exec -it <container> /bin/sh # shell into running container
docker logs -f <container> # follow logs
docker inspect <container> # detailed config
docker stats # live resource usage
docker rm <container> # remove stopped container
docker rmi <image> # remove image
docker system prune # clean up unused everything
docker network ls # list networks
docker volume ls # list volumes
docker build -t myapp:1.0 . # build image from current directory