# 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"]}
