This page provides the additional steps required to install Cyberwatch behind a proxy.
Before making any changes in the docker configuration, configure the proxy for the local user:
Then check if this configuration is appropriate with one of these two commands:
curl -i https://harbor.cyberwatch.fr
wget -O- https://harbor.cyberwatch.fr
The expected result is
mkdir -p /etc/systemd/system/docker.service.d
Go to this directory and create the
cat >> http-proxy.conf <<EOL
cat >> https-proxy.conf <<EOL
Ensure that the
$HTTPS_PROXY variables are set for the user who will be writing to the files.
Apply the changes:
systemctl restart docker
To check if the proxy configuration is working, switch to the
cyberwatch user and run the command:
docker login harbor.cyberwatch.fr
Requires adding a
cbw$ prefix before the login from the Cyberwatch license
If the command returns
Login Succeeded, the proxy configurations are valid.
It is possible that the creation of the services takes longer.
This happens if the docker service tries to resolve the DNS before going through the proxy.
In this case, add the following line to the
This line is used to match the IP with the URL that the DNS is trying to resolve.