I have a Windows host running a RHEL 8 VM that is running multiple Docker containers. I created the Docker network and assigned static IPs for each container. The VM can access each container endpoints. However, the Windows host and anything outside cannot. Is it possible to create a subnet that will allow applications from the outside to communicate with the containers?
Each of these container is acting as a routing device to receive data from an external application. The external app needs to be able to send the data to the IP that correspond to the container.
NOTE: currently not using docker-compose
Here's a step-by-step setting up a subnet for Docker containers in a Rhel 8 VM on a Windows host, to allow external applications to communicate with these containers: