Docker: Things I Want to Remember

Published on: 2025-01-09 01:10

Collection of various recipes, methodologies, tools, hints, talks, etc.

Written by Alisa Feistel

_draft

containers

Multi-stage builds

https://docs.docker.com/build/building/multi-stage/ (permalink)

FROM base AS stage
COPY --from=stage /bin/example /bin/example
docker build --target stage .

https://docs.docker.com/reference/compose-file/build/#target (permalink)

services:
   example:
      build:
         context: .
         target: stage

Caching

Cache Mounts

External Caches