container-schulung/listings/exercises/ex06-bind-mount/commands.txt
Frank Engel b32d8c2472 exercises: ex16-19 hinzugefügt, commands.sh → commands.txt
- ex16: lokale Registry + VisitCounter pushen
- ex17: vollständiger Update-Zyklus (edit → build → push → restart)
- ex18: VisitCounter mit Quadlets deployen
- ex19: Container schrittweise härten (read-only, cap-drop, no-new-priv)
- alle commands.sh umbenannt in commands.txt, Shebang entfernt

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 09:09:51 +02:00

12 lines
418 B
Text

# Exercise 6 — Bind Mounts
# Terminal 1: write dates to /tmp/output (detached)
podman run -d --name writer -v /tmp:/data busybox \
sh -c 'while true; do sleep 1; date >> /data/output; done'
# Terminal 2: watch the output (Ctrl+C to exit, or: podman stop reader)
podman run --name reader -v /tmp:/data busybox tail -f /data/output
# Cleanup
podman stop writer reader && podman rm writer reader
rm -f /tmp/output