local_registry_생성

Local Registry 생성

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
docker run --restart always --name myregistry -d -p 5000:5000 registry
로그인하면 댓글을 남길 수 있습니다.
  • local_registry_생성.txt
  • 마지막으로 수정됨: 2023/04/12 08:39
  • 저자 koov