Skip to content

Instantly share code, notes, and snippets.

@gmsantos
Created December 7, 2016 13:05
Show Gist options
  • Save gmsantos/62a96679aa6ec303d86632cc2e0603f4 to your computer and use it in GitHub Desktop.
Save gmsantos/62a96679aa6ec303d86632cc2e0603f4 to your computer and use it in GitHub Desktop.
Setup Proxy on Docker Engine
#!/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