Rocky Linux 9 (or Red Hat 9) - Quick Installation with Docker
Introduction
This is a very brief guide which provides the necessary steps to install Rocky Linux or Red Hat. For this guide, the following ISO has been used: Rocky-9.4-x86_64-minimal.iso
(some steps may vary in other versions).
This guide is meant for reference purposes only and it does not replace any official documentation, which should always be taken into account.
Note: For Red Hat, you must have a valid subscription in order to download the required packages. You must register your subscription before running any dnf
or yum
commands.
Steps to install the operating system
Download the ISO from the official Rocky website. Then upload it to your virtualization system, and boot it up.
Upon booting, a graphical setup wizard is displayed. Configure at least the following sections:
Language, Keyboard, and Time Zone.
Installation destination: Automatic partitioning. Enter and click “Done” to select this mode.
Software Selection → Minimal install.
Network & Host Name: Enter configuration, IPv4 tab. Choose the “Manual” method, then add IP addresses (the Master requires at least two interfaces when deployed with SIP Registrar, see sample screenshot).
Root Password & User Creation.
Recommendation: create a user (e.g., opengate) with a password and check the Administrator option. Do not activate or set a password for the root user; use
sudo
with the administrator user.
If the network is not configured at this time (or not configured correctly), you can run the command sudo nmtui
after rebooting to set up the network connection.
Once the installation is complete, restart the machine, eject the installation disk, and verify that it boots up and can be connected via SSH (ssh opengate@ip.ip.ip.ip
, where opengate is the user configured during the installation).
Steps to install Docker
Once connected to the system console, execute the following commands:
If you need to modify the network configuration:
sudo nmtui
Disable the firewall:
sudo systemctl disable firewalld sudo systemctl stop firewalld
Install Docker:
sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin sudo systemctl --now enable docker
If installing on Red Hat, the repository is different. Execute these commands:
Add the user to the "docker" group (if this is not done, all Docker commands will need to be executed with sudo):
After executing this command, it is necessary to log out and reconnect for the permissions to take effect. Logout with
exit
and then re-establish the SSH connection.Once reconnected, verify that Docker is running with the command
docker info
, which will display information similar to the following:
Other OS level configuration
Multiple IP addresses
If you do not configure them using the install user interface, start the console configuration with sudo nmtui
, select the appropriate connection, then use the “Add…” option inside Addresses section to add the new IP.
For Azure installations, follow the official documentation Assign multiple IP addresses to VMs - Azure portal
NTP synchronization
By default, it is configured to sync with public servers. If you want to configure it to sync with the machine running OpenGate Proxy Server, edit the file /etc/chrony.conf
, remove the public servers, and add the following instead:
Where ip.ip.ip.ip
is the IP address of the OpenGate Proxy Server machine.
In the OpenGate Proxy Windows machine the NTP Server can be enabled with the following steps:
Disable the Windows NTP client. You must first open the date and time configuration settings, select the Internet Time tab and click on Change settings. Next, uncheck the Synchronize with an Internet time server box, as shown below:
Enable the Windows NTP server. You must first create a file named
NTPServerEnable.reg
with the following:Run the
NTPServerEnable.reg
file created and accept the prompt to import the data into the registry. Open a command prompt as administrator and issue the following commands:
Email service
On the OpenGate Master node, it is necessary to install "postfix" in order to send voicemails: