Dockerfile runs on Mac but won't run on Linux behind my proxy
I have the following Dockerfile , for a container that runs just fine on my Mac, (I’m using docker-machine)
FROM perl:latest RUN cpanm SOAP::Lite RUN cpanm LWP::Simple COPY . /usr/src/myapp WORKDIR /usr/src/myapp ENTRYPOINT [ "perl", "./doceng_purge_tools/bin/akamai_purge_pattern_generic.pl" ] # CMD /bin/bash # docker build -t my_perl_purger_001 . # docker run -t my_perl_purger_001 -pattern cd/Q14299_01 -server prod
However, when I run it using docker on my corporate network. I get a low-level SSL error.
Forgive my ignorance, but I thought a feature of docker is that I can be shielded from these platform gotchas.
Is there a way I can package this up, on my Mac, and just run the container in my Linux environment, behind my firewall?
I can supply more details about the SSL errors, if that helps.
One Solution collect form web for “Dockerfile runs on Mac but won't run on Linux behind my proxy”
… and just run the container in my Linux environment, behind my firewall?
...Can't connect to control.akamai.com:443
… but I thought a feature of docker is that I can be shielded from these platform gotchas.
If you run docker behind a firewall which prohibits connections to outside you can not expect to get a connection. Docker does not create some magic tunnel through the firewall but relies instead on the existing network, same es it relies on the existence of the CPU, RAM and storage. Proper network is just another resource you need to provide for your docker image.