# Docker Upstart and SysVinit configuration file

# Customize location of Docker binary (especially for development testing).
DOCKER="<%= Docker::Helpers.executable(node) %>"

<% if node['docker']['logfile'] -%>
DOCKER_LOGFILE=<%= node['docker']['logfile'] %>
<% end -%>

# Use DOCKER_OPTS to modify the daemon startup options.
DOCKER_OPTS='<%= @daemon_options %>'

<% if node['docker']['pidfile'] -%>
DOCKER_PIDFILE=<%= node['docker']['pidfile'] %>
<% end -%>

<% if node['docker']['ramdisk'] -%>
DOCKER_RAMDISK=<%= node['docker']['ramdisk'] %>
<% end -%>

# If you need Docker to use an HTTP proxy, it can also be specified here.
<% if node['docker']['http_proxy'] -%>
export HTTP_PROXY=<%= node['docker']['http_proxy'] %>
<% end -%>
<% if node['docker']['no_proxy'] -%>
export NO_PROXY=<%= node['docker']['no_proxy'] %>
<% end -%>

# This is also a handy place to tweak where Docker's temporary files go.
<% if node['docker']['tmpdir'] -%>
export TMPDIR="<%= node['docker']['tmpdir'] %>"
<% end -%>

# Docker Upstart and SysVinit configuration file

# Customize location of Docker binary (especially for development testing).
DOCKER="<%= Docker::Helpers.executable(node) %>"

<% if node['docker']['logfile'] -%>
DOCKER_LOGFILE=<%= node['docker']['logfile'] %>
<% end -%>

# Use DOCKER_OPTS to modify the daemon startup options.
DOCKER_OPTS="<%= @daemon_options %>"

<% if node['docker']['pidfile'] -%>
DOCKER_PIDFILE=<%= node['docker']['pidfile'] %>
<% end -%>

<% if node['docker']['ramdisk'] -%>
DOCKER_RAMDISK=<%= node['docker']['ramdisk'] %>
<% end -%>

# If you need Docker to use an HTTP proxy, it can also be specified here.
<% if node['docker']['http_proxy'] -%>
export HTTP_PROXY=<%= node['docker']['http_proxy'] %>
<% end -%>
<% if node['docker']['no_proxy'] -%>
export NO_PROXY=<%= node['docker']['no_proxy'] %>
<% end -%>

# This is also a handy place to tweak where Docker's temporary files go.
<% if node['docker']['tmpdir'] -%>
export TMPDIR="<%= node['docker']['tmpdir'] %>"
<% end -%>

Use double-quotes for DOCKER_OPTS to allow interpolation of any embedded variables
Use double-quotes for DOCKER_OPTS to allow interpolation of any embedded variables
