I have a docker container from which I build and package a Java application with maven 3. I have some dependencies deployed to a Nexus server, I can only access through a VPN from local. How can I connect my docker container to that VPN?
docker image details:
Base image : Ubuntu 16.04 LTS as base system
Java 8, maven 3, Tomcat 8 installed
To create my docker container (I didn't add any network configuration):
docker run -it --rm -v '$PWD':/app -w /app/app-parent appImage/v:02 mvn clean install
And that's the error i get:
INFO: I/O exception (java.net.NoRouteToHostException) caught when processing request to {}->http://myserver:80: No route to host (Host unreachable)