mkdir -p /opt/registry/{data,auth,certs}
podman run --name myregistry \
-p 5000:5000 \
-v /opt/registry/data:/var/lib/registry:z \
-v /opt/registry/auth:/auth:z \
-v /opt/registry/certs:/certs:z \
-d docker.io/library/registry:latest
#--- 인증서 사용시
-e "REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt" \
-e "REGISTRY_HTTP_TLS_KEY=/certs/domain.key" \
-e "REGISTRY_COMPATIBILITY_SCHEMA1_ENABLED=true" \
podman generate systemd myregistry > /etc/systemd/system/podman.registry.service
systemctl daemon-reload
systemctl enable podman.registry.service