Docker Commands
Docker Commands
Section titled “Docker Commands”Most commonly used docker commands.
List docker containers
Section titled “List docker containers”docker ps
you can also use watch docker ps if you are specifically checking to see if the container is crashing.
Compose
Section titled “Compose”Start container
Section titled “Start container”Attatched
Section titled “Attatched”docker compose up
Detached
Section titled “Detached”docker compose up -d
Stop Container
Section titled “Stop Container”Persist data
Section titled “Persist data”docker compose down
Clear Volumes
Section titled “Clear Volumes”docker compose down -v
docker logs <conatainer-name>
Run Terminal Session Within Container
Section titled “Run Terminal Session Within Container”docker exec -it <container-name> bash
this is a succesful deployment