Photon OS

  • 1.  How to set proxy to access internet on photon

    Posted Nov 25, 2015 04:42 AM

    Hi

    I have successfully deployed photon OVA templated on vSphere 5.5 setup, when I am trying to install docker using the command "docker run -d -p 80:80 vmwarecna/nginx" its says unable to reach internet. Since my setup is behind a proxy server, I have tried to set proxy in a traditional linux method, however I am still not able to reach internet.

    Can you help me to find a way to set proxy ?

    SO far I have tried to setup proxy by running below commands.

    #export http_proxy=http://foo:bar@server-ip:port/

    #export https_proxy=http://foo:bar@server-ip:port/

    I am using below link to install docker.

    https://github.com/vmware/photon/wiki/Running-Project-Photon-on-vSphere



  • 2.  RE: How to set proxy to access internet on photon

    Posted Nov 25, 2015 05:40 AM

    Try changing /etc/sysconfig/docker

    There is a export http_proxy that you can uncomment.



  • 3.  RE: How to set proxy to access internet on photon
    Best Answer

    Posted Nov 25, 2015 05:43 AM


  • 4.  RE: How to set proxy to access internet on photon

    Posted Nov 25, 2015 07:09 AM

    Thank You So much, this helped me :-)



  • 5.  RE: How to set proxy to access internet on photon

    Posted Nov 25, 2015 07:22 AM

    :smileyhappy:



  • 6.  RE: How to set proxy to access internet on photon

    Posted Jun 15, 2016 05:13 PM
    Thanks, this helped me too :-)


  • 7.  RE: How to set proxy to access internet on photon

    Posted Nov 25, 2015 06:52 AM

    I do not see any file/directory by name docker under /etc/sysconfig --  this is what I see under sysconfig

    Version of Photon



  • 8.  RE: How to set proxy to access internet on photon

    Posted Nov 25, 2015 07:06 AM

    Did you have a chance to look at this link?

    Control and configure Docker with systemd

    "You can customize the Docker daemon options using override files as explained in the HTTP Proxy example below. The files located in /usr/lib/systemd/system or /lib/systemd/system contain the default options and should not be edited."

    Hope this helps.