Configuring a Cyberwatch node to retrieve images from a local registry
Once the registry is set up, it is necessary to configure the Cyberwatch nodes to download their images from the new registry.
Modify the
CBW_CONTAINER_REGISTRYvariable defined in the/etc/cyberwatch/config.envin order to define the access to the new registry:CBW_CONTAINER_REGISTRY="IP_REGISTRY:REGISTRY_PORT"Optional If the registry does not have a valid HTTPS certificate, allow its URL as an insecure registry in the
/etc/docker/daemon.jsonfile of the Cyberwatch nodes:{ "insecure-registries" : ["IP_REGISTRY:REGISTRY_PORT"] }Restart docker:
sudo systemctl restart dockerRestart Cyberwatch:
sudo cyberwatch restart