Skip to content

Instantly share code, notes, and snippets.

@hisamekms
Created August 19, 2014 02:49
Show Gist options
  • Save hisamekms/901ee78c4eb6200962bc to your computer and use it in GitHub Desktop.
Save hisamekms/901ee78c4eb6200962bc to your computer and use it in GitHub Desktop.
IntraにDocker Registryを立てたときはNO_PROXYも忘れずに ref: http://qiita.com/hisamekms/items/fc47d0ccf2c69268ae71
...
[Service]
...
Environment="HTTP_PROXY=YOUR.PROXY.HOST:PORT"
Environment="NO_PROXY=NO.PROXY.HOST1,NO.PROXY.HOST2"
ExecStart=/usr/bin/docker -d -s=btrfs -r=false -H fd://
...
# /etc/systemd/system/docker.service
...
[Service]
...
Environment="HTTP_PROXY=YOUR.PROXY.HOST:PORT"
Environment="NO_PROXY=NO.PROXY.HOST1,NO.PROXY.HOST2"
ExecStart=/usr/bin/docker -d -s=btrfs -r=false -H fd://
...
# /etc/sysconfig/docker
other_args="--exec-driver=lxc --selinux-enabled"
export HTTP_PROXY=YOUR.PROXY.HOST:PORT
export NO_PROXY=NO.PROXY.HOST1,NO.PROXY.HOST2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment