container-schulung/listings/exercises/ex16-local-registry/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

19 lines
603 B
Text

# Exercise 16 — Start a local registry and push the VisitCounter
# Start the registry container
podman run -d --name local-registry -p 5000:5000 registry:2
# Build the VisitCounter image
cd listings/visitcounter/app
podman build -t localhost:5000/visitcounter:latest .
# Push to the local registry
podman push --tls-verify=false localhost:5000/visitcounter:latest
# Verify: list all repositories
curl http://localhost:5000/v2/_catalog
# → {"repositories":["visitcounter"]}
# Verify: list tags
curl http://localhost:5000/v2/visitcounter/tags/list
# → {"name":"visitcounter","tags":["latest"]}