Use this section to create and configure docker registry.
Procedure
From the Plant Applications Enterprise Edition Web Client installation package, download the DTR.zip file into the machine on which you want to run Docker Registry.
Extract the DTR.zip file into a new pa-dtr folder by running following command: sudo unzip <downloaded_path>/DTR.zip -d pa-dtr. This folder stores the Docker Registry configuration files.
Note: Ensure that you have enough space (minimum 50 GB) to store these extracted
files.
Create another folder named docker.service.d in the
/etc/systemd/system folder by running the following
command:
Copy the following lines of code into the http-proxy.conf
file, replacing the text in the angular brackets with the appropriate
values:
{Service}
Environment="HTTP_PROXY=<proxy URL>:<port number of the proxy
server>/""NO_PROXY=localhost,127.0.0.1,<IP address of the Docker
Registry node>,<host name of the Docker Registry node>"
Save the file and close it.
Note: To save and close the file, enter Ctrl+O and Ctrl+X, respectively.
Create a file named daemon.json in the following folder: /etc/docker
Add the following lines of code in the daemon.json file:
{
"insecure-registries" : ["<IP address of the Docker Registry node>:5000","<host name of the Docker Registry node>:5000"]
}
Run the following commands to restart the docker:
sudo systemctl restart docker
Using terminal, navigate to the pa-dtr folder.
Access the .env file, and update the following parameters with the correct
absolute path.
In the pa-dtr folder, change the permission of the PA_DTR_Start_Lix.sh file to 775 by running the following command: sudo chmod 775 ./PA_DTR_Start_Lix.sh
Access the PA_DTR_Start_Lix.sh file, and run the Shell script with sudo privileges: sudo ./PA_DTR_Start_Lix.sh. This is necessary to create and access the Docker registry.
Go to the following locations to check if the Docker registry is created successfully:
Registry-url: http://<host name or IP address>:5000/v2/_catalog to verify that the registry is up and running.
Registry-web-url: http://<host name or IP address>:8080 to verify the docker images.
Docker Registry is created. When prompted for the DTR URL during the installation of Plant Applications Enterprise Edition Web Client, enter <host name of IP address of this local Docker Registry>:5000.