Setting HTTP proxy for docker

the docker no longer uses the /etc/default/docker file. env properties like HTTP_PROXY and HTTPS_PROXY have to be configured using the systemctl i.e.:

sudo mkdir /etc/systemd/system/docker.service.d
	sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf
cat /etc/systemd/system/docker.service.d/http-proxy.conf   
	Environment="HTTP_PROXY=" "HTTPS_PROXY=" 

you load the new params like this:

sudo systemctl daemon-reload
	sudo service docker stop
	sudo service docker start

and then, if you are lucky, the pull and login to will work!!

docker pull busybox
	docker login
	docker pull

NOTE: similarly, the basic options i.e. TLS and bind params are read from this file:

cat /etc/systemd/system/docker.service.d/dockeropts.conf
	ExecStart=/usr/bin/dockerd -H unix:///var/run/docker.sock -H tcp://