Docker HTTP proxy settings in Upstart
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