January-21st-2019, 04:03 PM
(January-19th-2019, 08:33 PM)Armin@netPI Wrote: 1.) Yes Rahul the whole Desktop is running encapsulated in a container ... and yes also the console you are opening via terminal on HDMI screen is running inside the container. (So if you would remove the whole container from your system via Docker Web GUI, then everything is gone)
2.) Whether an application is running inside a container or outside a container as on your RPi3 should be always result in the same behaviour. I have no explanation right now why it isn't running. Your http request is a service you initiate from inside the container so there is no filter at all for outgoing TCP/IP packets and also responses to this packet.
3.) ok
4.) ok
What you can also test from the Desktop console are simple things like "ping" command first, to see if you reach the http server's IP address.
As next you can continue to use "curl" command as described here with an example: https://askubuntu.com/questions/299870/h...l-in-linux in your console.
You need to set up the parameters of course accordingly to your http service needed. I am pretty sure that it will work.
This is just to test and to prove that in no way a container restricts applications needed outgoing connection.
A different thing is of course incoming connections if http requests come from outside netPI and shall land in a container. For such scenarios container ports need to be opened at container start time. But as far as I have understood this is not what you want.
I am sorry to say that I am not familiar with eclipse and java and your application. The only thing I can tell your there is no limitation in a container. There must be another reason why the http request does not go out. Maybe eclipse is a differnet version compared to the one on Rpi3.
Usually you get error codes back on http requests. What is the error code? Is there anything you can search on the internet if others have the same problem?
Hello Sir,
I will try further based on your inputs .. Thank You