[Unit]
Description=Docker Socket for the API
PartOf=docker.service

[Socket]
<% Array(node['docker']['host']).each do |socket| -%>
ListenStream=<%= socket.gsub(/^unix:\/\//,'').gsub(/^tcp:\/\//,'') %>
<% end -%>
SocketMode=0660
SocketUser=root
SocketGroup=<%= node['docker']['group'] || 'root' %>

[Install]
WantedBy=sockets.target

[Unit]
Description=Docker Socket for the API
PartOf=docker.service

[Socket]
<% Array(node['docker']['host']).each do |socket| -%>
ListenStream=<%= socket.gsub(/^unix:\/\//,'').gsub(/^tcp:\/\//,'').gsub(/^fd:\/\//,'') %>
<% end -%>
SocketMode=0660
SocketUser=root
SocketGroup=<%= node['docker']['group'] || 'root' %>

[Install]
WantedBy=sockets.target

Revert "Don't gsub out the fd: bit because that's all that systemd supports"
Revert "Don't gsub out the fd: bit because that's all that systemd supports"

This reverts commit 3cc600d708db182d11c56a9710c89678a3f641a0.
