photon icon indicating copy to clipboard operation
photon copied to clipboard

How do I set corp proxy settings?

Open sandywater opened this issue 11 years ago • 3 comments

Also can I set a corp CA cert?

Thanks!

sandywater avatar Apr 20 '15 21:04 sandywater

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/

jacobludriks avatar Apr 23 '15 06:04 jacobludriks

Thanks @jacobludriks

toliaqat avatar Apr 24 '15 06:04 toliaqat

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.

sudtek avatar Apr 03 '19 08:04 sudtek