How To Use Shield Docker Registry¶
Shield includes a registry that can be configured, to be used on a multi-node deployment or in future installations as a local cache. Using the Shield registry will make future installations quicker and easier, since images will be imported from the local cache and not from the Docker Hub registry. This can be very useful when installing on several sites, or in a multi-machine system, where multiple installations/upgrades are required.
Deployment Options¶
- Shield-Registry is installed on a dedicated machine. Any Shield system can use it as a registry/cache.
- Shield-Registry is installed on the management machine. Upon creating the cluster, all shield nodes will use the local registry.
Configuration¶
To configure Shield to use Docker registry, follow these steps:
Install Shield on the first instance (or use an existing Shield machine) as described here.
Run Shield Registry on this machine:
cd /usr/local/ericomshield sudo wget https://ericom-tec.ashisuto.co.jp/shield/shield-registry-start.sh sudo chmod +x shield-registry-start.sh sudo ./shield-registry-start.sh
Install Shield (on a different instance) using the registry:
sudo wget https://ericom-tec.ashisuto.co.jp/shield/setup.sh sudo chmod +x setup.sh sudo ./setup.sh --force --registry <registry-ip:port>
For every future installation the system will use the registry (for each upgrade or when nodes are added to the cluster).