Bootstrapping from a Private Docker Registry¶
You can bootstrap controller-0 from a private Docker registry in the event that your server is isolated from the public Internet.
Note
The private docker registry name must not end with “.local” to ensure that the domain name is properly resolved using external DNS.
Procedure
Update your /home/sysadmin/localhost.yml bootstrap overrides file with the following lines to use a Private Docker Registry pre-populated from the StarlingX Docker Registry:
docker_registries: k8s.gcr.io: url: <my-registry.io>/k8s.gcr.io gcr.io: url: <my-registry.io>/gcr.io ghcr.io: url: <my-registry.io>/ghcr.io quay.io: url: <my-registry.io>/quay.io docker.io: url: <my-registry.io>/docker.io docker.elastic.co: url: <my-registry.io>/docker.elastic.co defaults: type: docker username: <your_my-registry.io_username> password: <your_my-registry.io_password>
Where
<your_my-registry.io_username>
and<your_my-registry.io_password>
are your login credentials for the<my-registry.io>
private Docker registry.Note
<my-registry.io>
must be a DNS name resolvable by the dns servers configured in thedns_servers:
structure of the ansible bootstrap override file /home/sysadmin/localhost.yml.For any additional local registry images required, use the full image name as shown below.
additional_local_registry_images: docker.io/wind-river/<imageName>:<tag>