when running the following command, the Docker Container cannot compile returning the following output:
Cmd: docker run --rm -v $(pwd):/tmp/component c2netproject.eu/runtime/java/dev:1_0_0 -c 'cd /tmp/component && npm install’
Cmd output:Attached
Discussion
-
Josep Maria Bernabe
2016-10-03Just for the record, this doubt has been previously sent and resolved via email.
In this case, the problem came from the name resolution server (DNS) configuration mixed with some sort of external DNS blocking performed by UNINOVA's internal network. The solution, found by David Aleixo, was to change that configuration to use the global DNS used by the internal network. The steps suggested by David Aleixo are the following:
- The docker host must have IP Forwarding enabled:
$ net.ipv4.ip_forward = 1 - I have disabled the dnsmasq in order to use the global DNS
- In some cases, additional firewall config should be done in order to ensure that fw "forwards the traffic to the Docker's bridge network"
DEFAULT_FORWARD_POLICY = ACCEPT (for ufw) - You were right. I guess our internal network is somehow blocking external DNS, thus DOCKER_OPTS was updated to hit the "internal" DNS, or more easly, as you said just using "--dns" will do the job as well.
- The docker host must have IP Forwarding enabled:
-
Josep Maria Bernabe
2016-10-03- status: open --> closed