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.

  • How to assign a port mapping to an existing docker container on Docker for Mac?
  • Can I somehow see my Docker Hub images being built via Github hooks?
  • How do i deploy from GitLab CI to Google Container Engine instance using Docker?
  • docker stack deploy from private repo
  • Error in docker-compose build. version issue
  • Configuring Kafka to accept clients both from inside and outside docker
  • 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.

  • Upload local files to docker container
  • Docker : How To Dockerize And Deploy multiple instances of a LAMP Application
  • Jenkins run job in local docker image
  • copy a file to a volume of a running docker container using the remote API
  • NPM install via git+https//x-oauth-basic within Docker container fails
  • Permissions issue with Docker volumes
  • 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.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.