Skip to content

Commit

Permalink
Add -e flag for execution driver, closes #84
Browse files Browse the repository at this point in the history
  • Loading branch information
bflad committed Mar 15, 2014
1 parent f5ba1cc commit 1fa39ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/default/docker.service.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Type=simple
Environment="HTTP_PROXY=<%= node['docker']['http_proxy'] %>"
<% end -%>
ExecStartPre=/usr/sbin/sysctl -w net.ipv4.ip_forward=1 net.ipv6.conf.all.forwarding=1
ExecStart=<%= node['docker']['install_dir'] %>/docker -d<%= node['docker']['bind_socket'] ? " -H #{node['docker']['bind_socket']}" : '' %><%= node['docker']['bind_uri'] ? " -H #{node['docker']['bind_uri']}" : '' %><%= node['docker']['container_init_type'] ? ' -r=false' : '' %><%= node['docker']['options'] ? " #{node['docker']['options']}" : '' %><%= node['docker']['storage_driver'] ? " -s #{node['docker']['storage_driver']}" : '' %>
ExecStart=<%= node['docker']['install_dir'] %>/docker -d<%= node['docker']['bind_socket'] ? " -H #{node['docker']['bind_socket']}" : '' %><%= node['docker']['bind_uri'] ? " -H #{node['docker']['bind_uri']}" : '' %><%= node['docker']['container_init_type'] ? ' -r=false' : '' %><%= node['docker']['options'] ? " #{node['docker']['options']}" : '' %><%= node['docker']['storage_driver'] ? " -s #{node['docker']['storage_driver']}" : '' %><%= node['docker']['exec_driver'] ? " -e #{node['docker']['exec_driver']}" : '' %>
Restart=on-failure

[Install]
Expand Down
3 changes: 3 additions & 0 deletions templates/default/docker.sysconfig.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ DOCKER_OPTS="$DOCKER_OPTS <%= node['docker']['options'] %>"
<% if node['docker']['storage_driver'] -%>
DOCKER_OPTS="$DOCKER_OPTS -s <%= node['docker']['storage_driver'] %>"
<% end -%>
<% if node['docker']['exec_driver'] -%>
DOCKER_OPTS="$DOCKER_OPTS -e <%= node['docker']['exec_driver'] %>"
<% end -%>

# If you need Docker to use an HTTP proxy, it can also be specified here.
<% if node['docker']['http_proxy'] -%>
Expand Down
2 changes: 1 addition & 1 deletion templates/default/sv-docker-run.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ exec 2>&1
<% if node['docker']['http_proxy'] -%>
export HTTP_PROXY=<%= node['docker']['http_proxy'] %>
<% end -%>
exec <%= node['docker']['install_dir'] %>/docker -d<%= node['docker']['bind_socket'] ? " -H #{node['docker']['bind_socket']}" : '' %><%= node['docker']['bind_uri'] ? " -H #{node['docker']['bind_uri']}" : '' %><%= node['docker']['container_init_type'] ? ' -r=false' : '' %><%= node['docker']['options'] ? " #{node['docker']['options']}" : '' %><%= node['docker']['storage_driver'] ? " -s #{node['docker']['storage_driver']}" : '' %>
exec <%= node['docker']['install_dir'] %>/docker -d<%= node['docker']['bind_socket'] ? " -H #{node['docker']['bind_socket']}" : '' %><%= node['docker']['bind_uri'] ? " -H #{node['docker']['bind_uri']}" : '' %><%= node['docker']['container_init_type'] ? ' -r=false' : '' %><%= node['docker']['options'] ? " #{node['docker']['options']}" : '' %><%= node['docker']['storage_driver'] ? " -s #{node['docker']['storage_driver']}" : '' %><%= node['docker']['exec_driver'] ? " -e #{node['docker']['exec_driver']}" : '' %>

0 comments on commit 1fa39ee

Please sign in to comment.