First, to avoid opening the network of the container to another network, you need to open a shell to the docker container itself. To do so, use the following command: docker exec -it website_db /bin/bash; After executing the exec command, you will get a shell to the docker container. Use…
Recently, we came across a CentOS 7 that was executing MariaDB (MySQL) server. The Database Administrators needed a way to open to the port and allow connections to the SQL server from outside the machine.As they did not have a specific IP from which they would connect, we provided the…
IP allocations First, we set up a static IP on the network device that would handle all external traffic and a DHCP on the network device that would access the management network, which is connected for maintenance. To do so, we created the following file: /etc/netplan/01-netcfg.yaml using the following command:…