HomeAbout

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/Delete Container

# stop running the containers docker-compose down # Delete no longer needed containers that are stopped docker container prune

Stopping and Pruning Docker

# deleting old images not being used docker rmi -f $(docker images -a -q) # docker stop all images docker stop $(docker ps -q) # delete colima colima delete
AboutContact