- listings/exercises/ex05-ex15: alle Übungsdateien für Tag 2 (Networking, Bind Mounts, Volumes, Env Variables, Compose, Build, Push, Registry) - setup/setup-ubuntu2404.sh: Prep-Script für Ubuntu 24.04 (Noble) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
13 lines
358 B
Bash
Executable file
13 lines
358 B
Bash
Executable file
#!/bin/bash
|
|
# Exercise 14 — Push image to local registry
|
|
|
|
# Tag and push
|
|
podman build -t localhost:5000/hello:latest .
|
|
# OR tag an existing image:
|
|
# podman tag hello:latest localhost:5000/hello:latest
|
|
|
|
podman push --tls-verify=false localhost:5000/hello:latest
|
|
|
|
# Verify
|
|
curl http://localhost:5000/v2/_catalog
|
|
curl http://localhost:5000/v2/hello/tags/list
|