mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-05-21 04:15:14 +00:00
Update _index.md
This commit is contained in:
@@ -19,17 +19,21 @@ private_registries:
|
||||
|
||||
### Default Registry
|
||||
|
||||
RKE v0.1.10-rc2 supports specifying a default registry from the list of private registries to be used with all system images by default, for example:
|
||||
As of v0.1.10, RKE supports specifying a default registry from the list of private registries to be used with all [system images]({{< baseurl >}}/rke/v0.1.x/en/config-options/system-images/) . In this example .RKE will use `registry.com` as the default registry for all system images, e.g. `rancher/rke-tools:v0.1.14` will become `registry.com/rancher/rke-tools:v0.1.14`.
|
||||
|
||||
```yaml
|
||||
private_registries:
|
||||
- url: registry.com
|
||||
user: Username
|
||||
password: password
|
||||
is_default: true
|
||||
is_default: true # All system images will be pulled using this registry.
|
||||
```
|
||||
This way RKE will use `registry.com` as the default registry for all system images used, so for example `rancher/rke-tools:v0.1.14` will become `registry.com/rancher/rke-tools:v0.1.14`.
|
||||
|
||||
### Air-gapped Setups
|
||||
|
||||
If you are in an air-gapped setup, before version v0.1.10-rc2 you will need to not only configure your private registry credentials, but you will need to also update all your [system images]({{< baseurl >}}/rke/v0.1.x/en/config-options/system-images/) so they are going to pull from the private registry, however after version v0.1.10-rc2 you can specify the default registry described in the previous section. By default, these system images are pulling from `docker.io`.
|
||||
By default, all system images are being pulled from DockerHub. If you are on a system that does not have access to DockerHub, you will need to create a private registry that is populated with all the required [system images]({{< baseurl >}}/rke/v0.1.x/en/config-options/system-images/).
|
||||
|
||||
As of v0.1.10, you can specify a default registry so that all [system images]({{< baseurl >}}/rke/v0.1.x/en/config-options/system-images/) are pulled from the designated private registry. You can use the command `rke config --system-images` to get the list of default system images to populate your private registry.
|
||||
|
||||
Prior to v0.1.10, you would have had to configure your private registry credentials and update the names of all the [system images]({{< baseurl >}}/rke/v0.1.x/en/config-options/system-images/) in the cluster.yml so that they would have the private registry url appended before the image name.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user