HomeToolsAbout a20k

Docker

Tools

Lazydocker

  • simple terminal UI for both docker and docker-compose
    • Useful because you don't have to memorize/run docker commands since they're all running simultaneously in a single view

Docker

System Information

Display system-wide information regarding the Docker installation

docker info

Ad Hoc run of docker in CLI

This is useful when k8s can't pull image psql to the pods properly

  • Running the ad hoc command will
docker run --name test_psql_2 -e POSTGRES_PASSWORD=password -p 5436:5432 -it postgres:14

Images

Show all docker images

docker image ls

Delete docker images

docker image rm image_id -f

Containers

List all containers

docker container ls

Show all running containers

docker ps

Start container

Start running the containers

docker-compose up

OR

docker-compose up --detach
What is `--detach` mode
  • uptime docker with separate cli instance (running in the background of your terminal)

Stop container

Stop running the containers

docker-compose down

Delete Container

Delete no longer needed containers that are stopped

docker container prune
© VincentVanKoh