servers:docker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
servers:docker [2025/08/17 12:52] – removed - external edit (Unknown date) 127.0.0.1 | servers:docker [2025/08/17 12:52] (current) – ↷ Page moved and renamed from docker:notes to servers:docker melo | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== docker notes ===== | ||
+ | ==== force recreate containers ==== | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | ==== exec script inside docker container ==== | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | ==== shell inside docker container ==== | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | ==== logs ==== | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | === tail logs === | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | ==== remove orphan containers ==== | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | ==== one-off run & exec ==== | ||
+ | |||
+ | <code bash> | ||
+ | # to get a shell | ||
+ | docker compose run --rm container_name bash | ||
+ | </ |