docker run <image>Create and start a container
docker run -d <image>Run container in background (detached)
docker run -it <image> bashRun container with interactive shell
docker run -p 8080:80 <image>Map host port 8080 to container port 80
docker run -v /host:/container <image>Mount host directory as volume
docker run --name myapp <image>Run container with custom name
docker run -e VAR=value <image>Set environment variable
docker run --rm <image>Remove container when it stops
docker run --network <net> <image>Connect to a specific network
docker psList running containers
docker ps -aList all containers (including stopped)
docker stop <container>Stop a running container
docker start <container>Start a stopped container
docker restart <container>Restart a container
docker rm <container>Remove a stopped container
docker rm -f <container>Force remove a running container
docker exec -it <container> bashOpen shell in running container
docker logs <container>View container logs
docker logs -f <container>Follow container logs (tail)
docker inspect <container>Show detailed container info
docker statsShow live resource usage
docker top <container>Show running processes in container
docker cp <src> <container>:<dest>Copy files to/from container