Various tips when using Docker.
Build a image using Dockerfile
in the same folder:
docker build -t <image_name> .
List all running containers:
docker ps
List all containers:
docker ps -a
Follow log from a container:
docker logs -f <container_name>
docker compose logs -f <container_name>
Prune all unused images:
docker image prune -a
Prune all:
docker system prune -a
More about pruning: https://docs.docker.com/config/pruning/