Created
December 7, 2016 13:05
-
-
Save gmsantos/62a96679aa6ec303d86632cc2e0603f4 to your computer and use it in GitHub Desktop.
Setup Proxy on Docker Engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir /etc/systemd/system/docker.service.d | |
echo '[Service]\nEnvironment="HTTP_PROXY=http://10.2.0.1:3128/"' > /etc/systemd/system/docker.service.d/http-proxy.conf | |
systemctl daemon-reload | |
systemctl restart docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment