=========================================== How to use private docker registry with Zun =========================================== Zun by default pull container images from Docker Hub. However, it is possible to configure Zun to pull images from a private registry. This document provides an example to deploy and configure a docker registry for Zun. For a comprehensive guide about deploying a docker registry, see `here `_ Deploy Private Docker Registry ============================== A straightforward approach to install a private docker registry is to deploy it as a Zun container:: $ openstack appcontainer create \ --restart always \ --expose-port 443 \ --name registry \ --environment REGISTRY_HTTP_ADDR=0.0.0.0:443 \ --environment REGISTRY_HTTP_TLS_CERTIFICATE=/domain.crt \ --environment REGISTRY_HTTP_TLS_KEY=/domain.key \ registry:2 .. note:: Depending on the configuration of your tenant network, you might need to make sure the container is accessible from other tenants of your cloud. For example, you might need to associate a floating IP to the container. In order to make your registry accessible to external hosts, you must use a TLS certificate (issued by a certificate issuer) or create self-signed certificates. This document shows you how to generate and use self-signed certificates:: $ mkdir -p certs $ cat > certs/domain.conf <