lib/percheron/actions/create.rb in percheron-0.7.14 vs lib/percheron/actions/create.rb in percheron-0.7.15
- old
+ new
@@ -44,17 +44,18 @@
'Labels' => unit.labels
}
end
def host_config_options
- {
+ config = {
'HostConfig' => {
'PortBindings' => port_bindings,
'Links' => unit.links,
- 'Binds' => unit.volumes,
- 'Dns' => unit.dns
+ 'Binds' => unit.volumes
}
}
+ config['Dns'] = unit.dns unless unit.dns.empty?
+ config
end
def options
@options ||= base_options.merge(host_config_options)
end