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. toni
    November 25th, 2013 at 02:21 | #1

    Saved my monday, thanks ;)

  2. Fede
    January 24th, 2014 at 06:15 | #2

    Great! I don't understand because this basic info isn't in the installation documentation on docker site. Thank you very much!

  1. No trackbacks yet.