===== docker notes =====
==== force recreate containers ====
docker compose up -d --force-recreate
==== exec script inside docker container ====
docker exec -it container_name bash -c "sh /script_name"
==== shell inside docker container ====
docker exec -it container_name bash # or sh
==== logs ====
docker compose logs container_name
=== tail logs ===
docker compose logs container_name -f
==== remove orphan containers ====
docker compose up -d --remove-orphans
==== one-off run & exec ====
# to get a shell
docker compose run --rm container_name bash