Add support for adding hosts in service create
diff --git a/docker/client/service.sls b/docker/client/service.sls
index e2487a1..31526dc 100644
--- a/docker/client/service.sls
+++ b/docker/client/service.sls
@@ -24,6 +24,7 @@
--with-registry-auth
{%- for env, value in service.get('environment', {}).iteritems() %} -e {{ env }}="{{ value }}"{%- endfor %}
{%- for port in service.get('ports', []) %} -p {{ port }}{%- endfor %}
+ {%- for name, host in service.get('hosts', {}).iteritems() %} --host {{ host.get('name', name) }}:{{ host.address }}{%- endfor %}
{%- for label, value in service.get('label', {}).iteritems() %} -l {{ label }}="{{ value }}"{%- endfor %}
{%- if service.network is defined %} --network {{ service.network }}{%- endif %}
{%- if service.replicas is defined %} --replicas {{ service.replicas }}{%- endif %}