Comments (3)
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.
Thanks @jacobludriks
from photon.
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)
- garbage collection of branches HOT 1
- security advisories missing in Security-Updates-{1,2,3,4,5}.md
- `nvme-tcp` kernel module missing HOT 4
- openjdk17-17.0.8 does not compile when building package with Photon OS 5.0 on WSL2 HOT 2
- Trying to setup static IP using installer and afterwards checking through the docs still not working HOT 4
- Upgrading Photon OS 3.0 to 5.0 without internet HOT 4
- first try on photon-os for docker-swarm fails with cgroup HOT 4
- Static IP breaks network connections in Photon OS 5 on VMWare Workstation HOT 2
- Photon should have a docker sub package that provides the docker buildx plugin HOT 2
- esx variant of linux kernel image missing module `nf_tables` for photon 3 HOT 1
- Cant get wlan working with realtek b852 device HOT 9
- observations when updating ph5.x86_64 from 6.1.79-2 to 6.1.81-3 HOT 1
- Static IP at installation time not picked up by photon installer - cannot download kickstart HOT 1
- Error: 404 when downloading https://packages.vmware.com/photon/5.0/photon_5.0_x86_64/repodata/repomd.xml HOT 3
- Doesn't boot on XCP-NG/XEN HOT 7
- specs generator training in Photon OS 6 branch HOT 2
- Question regarding photon advisory severities HOT 2
- k8s apiserver not running on RPi 4 model B HOT 5
- Documentation on how to configure live kernel patching. HOT 5
- Confirm security fix for CVE-2024-6387 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photon.