distribution icon indicating copy to clipboard operation
distribution copied to clipboard

Proxy settings with url encoded

Open willy1920 opened this issue 5 years ago • 2 comments

hi I have problem with docker on ubuntu 20.04. when I try to configure docker Environment proxy, docker won't accept url encoded character

I set up configure in this file /etc/systemd/system/docker.service.d/http-proxy.conf

Environment="HTTP_PROXY=http://domain%5Cusername:passwordwithurlenecoded@ipproxy:port" Environment="NO_PROXY=localhost,127.0.0.1" Environment="HTTPS_PROXY=http://domain%5Cusername:passwordwithurlenecoded@ipproxy:port"

sudo systemctl daemon-reload sudo systemctl show --property Environment docker

when I run this command sudo systemctl show --property Environment docker

it only result this Environment=NO_PROXY=localhost,127.0.0.1

willy1920 avatar May 28 '20 06:05 willy1920

btw I use docker version 19.03.9, build 9d988398e7

willy1920 avatar May 28 '20 06:05 willy1920

I don't want to necro-bump this old issue but here if other persons are also stumbling over this.

Reason: since Systemd 236 are unknown '%' specifiers in configuration files rejected.

See: https://github.com/systemd/systemd/blob/8da70b9d3036591a02986ddaf3574dea4001d493/NEWS#L6488

* Unknown '%' specifiers in configuration files are now rejected. This
applies to units and tmpfiles.d configuration. Any percent characters
that are followed by a letter or digit that are not supposed to be
interpreted as the beginning of a specifier should be escaped by
doubling ("%%").  (So "size=5%" is still accepted, as well as
"size=5%,foo=bar", but not "LABEL=x%y%z" since %y and %z are not
valid specifiers today.)```

expeditioneer avatar Jul 14 '22 19:07 expeditioneer