Coder Social home page Coder Social logo

How do I set corp proxy settings? about photon HOT 3 CLOSED

vmware avatar vmware commented on August 23, 2024
How do I set corp proxy settings?

from photon.

Comments (3)

jacobludriks avatar jacobludriks commented on August 23, 2024

First, create a new directory to store the extra configuration.

mkdir /etc/systemd/system/docker.service.d

Next, create a http-proxy.conf file in the directory and edit it.

touch /etc/systemd/system/docker.service.d/http-proxy.conf
nano /etc/systemd/system/docker.service.d/http-proxy.conf

Add the following information to the file (substituting where necessary) and save with Ctrl + X.

[Service]
Environment="HTTP_PROXY=http://username:[email protected]:8080/"

Reload the systemd daemon and restart Docker.

systemctl daemon-reload
systemctl restart docker

Information from my blog: http://jacob.ludriks.com/photondockerwindows/

from photon.

toliaqat avatar toliaqat commented on August 23, 2024

Thanks @jacobludriks

from photon.

sudtek avatar sudtek commented on August 23, 2024

Hello,
Sorry to reopen old closed topic to only add my 2 cents to the doc tip about special case with proxy and Docker Service, if your password or login include a "special caracter" in proxy in my case exemple myL@gin or myP@ssword you must not convert @ to %40 !

exemple in my http-proxy.conf

[service]
Environment="http_proxy=http://myL@gin:myP@[email protected]:3128/" "NO_PROXY=localhost,127.0.0.1,.myDomain.LOCAL"

compare to other proxy configuration file where you must convert @ to %40 to avoid that @ be interpreted as delimiteur :
http_proxy=http://myL%40in:myP%[email protected]:3128/" "NO_PROXY=localhost,127.0.0.1,.myDomain.LOCAL"

thks

Linux photonos01 4.19.29-1.ph3-esx #1-photon SMP Tue Mar 19 13:44:35 UTC 2019 x86_64 GNU/Linux

docker version
Client:
Version: 18.06.2
API version: 1.38
Go version: go1.10.7
Git commit: 6d37f41
Built: Mon Feb 25 14:49:01 2019
OS/Arch: linux/amd64
Experimental: false

Server:
Engine:
Version: 18.06.2-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.7
Git commit: 6d37f41
Built: Mon Feb 25 14:54:48 2019
OS/Arch: linux/amd64
Experimental: false

Proxy : eole-proxy
•Squid : proxy cache ;
•e2guardian : filtrage web ;
• Lightsquid : logs ;
•smbd, nmbd, winbind, krb5 : authentification NTLM ou Kerberos.

from photon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.