Common Docker Commands
Commands | Description |
---|---|
docker ps | View active containers |
docker ps -a | View all containers |
docker stop CONTAINER ID | Stop a container |
docker start CONTAINER ID | Start a container |
docker images | List existing images |
docker exec -t -i CONTAINER ID /bin/bash | Execute commands in an active container |
docker inspect CONTAINER ID | Inspect the configuration of a container |
docker logs -ft CONTAINER ID | View the logs of a container |
Last modified 2mo ago