Home > Software > Docker HTTP proxy settings in Upstart

Docker HTTP proxy settings in Upstart

October 10th, 2013 Leave a comment Go to comments

This was driving me crazy. There's some bug reports about it, but nobody has a plain and simple example. So here's mine. Enjoy.

Old:

description "Run docker"

start on filesystem or runlevel [2345]
stop on runlevel [!2345]

respawn

script
  /usr/bin/docker -d
end script

New:

description "Run docker"

start on filesystem or runlevel [2345]
stop on runlevel [!2345]

respawn

env HTTP_PROXY="http://your.address:port"
env HTTPS_PROXY="http://your.address:port"

script
  /usr/bin/docker -d
end script
Categories: Software
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.