I created a user defined bridge network like this:
docker network create my-net
Then I created two docker containers and and attached them to the same network:
docker create --name datalogger_container --network my-net --publish 9650:9650 datalogger:latest
docker create --name ui_container --network my-net --publish 5000:80 datalogger_ui:latest
The container ui_container is a flask application that tries to make rest calls to datalogger_container. However, the calls are not succeeding.
I am using the host name 'datalogger_container' in the ui_container but I see the error message
InvalidSchema: No connection adapters were found for 'datalogger_container:9650/load_details'
in the console output of the flask application. The port 9650 has been exposed. Can anyone help?