Relative Content

Tag Archive for javadockersaspy

Can’t establish connection to external resourse from docker

please help. I have docker container with Ubuntu 20.04 and Python 3.8 on-board. Docker by itself running on Oracle Linux 7.9. And i have remote resourse with specific port 8591 (There is SAS database). Connection to it is established with the help of Python module saspy which run Java command /usr/bin/java -classpath /usr/local/lib/python3.8…bla-bla-bla. The error is java.net.ConnectException: Connection refused (Connection refused). Such connection I establish in various containers on other servers with the same configuration and it works fine. Also i can establish connection to that remote resourse by SSH and make connection with Java to needed port from Oracle Linux server on which Docker is running. Network mode of container is “host”. In support of remote resourse I had answer that all Java configs are correct and I have network issue. What else I can check?