docs/doc/source/deploy_install_guides/r5_release/bare_metal/bootstrapping-from-a-privat...

1.7 KiB

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.

  1. Update your /home/sysadmin/localhost.yml bootstrap overrides file with the following lines to use a Private Docker Registry pre-populated from the Docker Registry:

    docker_registries:
      k8s.gcr.io:
        url: <my-registry.io>/k8s.gcr.io
      gcr.io:
        url: <my-registry.io>/gcr.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 the dns\_servers: structure of the ansible bootstrap override file /home/sysadmin/localhost.yml.

  2. 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>