Docker / Podman Style Guide
Keep images and Compose configuration in the designated container project or role. Use the configured engine; do not silently substitute Docker or Podman.
- Pin reviewed base images. Use minimal build contexts, .dockerignore and multi-stage builds where useful.
- Run as non-root when supported. Grant only necessary capabilities, devices and mounts; avoid privileged containers and unnecessary host networking.
- Keep persistent paths, ports, networks and health checks explicit. Use approved runtime secret configuration.
- Do not bake secrets into image layers, build arguments or labels. Treat container socket access as privileged.
- Preserve image tags, restart policy and documented variables.
FROM busybox:1.37.0
USER 65534:65534
CMD ["echo", "Container smoke test"]
Use the selected engine’s build/run targets. Validate Compose configuration and service health locally without pushing images or changing production services.