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.

  1. Modify the CBW_CONTAINER_REGISTRY variable defined in the /etc/cyberwatch/config.env in order to define the access to the new registry:

    CBW_CONTAINER_REGISTRY="IP_REGISTRY:REGISTRY_PORT"
    
  2. Optional If the registry does not have a valid HTTPS certificate, allow its URL as an insecure registry in the /etc/docker/daemon.json file of the Cyberwatch nodes:

    {
      "insecure-registries" : ["IP_REGISTRY:REGISTRY_PORT"]
    }
    
  3. Restart docker:

    sudo systemctl restart docker
    
  4. Restart Cyberwatch:

    sudo cyberwatch restart
    

Back to top