diff --git a/Ductus.FluentDocker/Model/Containers/ContainerCreateParams.cs b/Ductus.FluentDocker/Model/Containers/ContainerCreateParams.cs index dabe2d9..8c13220 100644 --- a/Ductus.FluentDocker/Model/Containers/ContainerCreateParams.cs +++ b/Ductus.FluentDocker/Model/Containers/ContainerCreateParams.cs @@ -848,9 +848,8 @@ public override string ToString() if (null != HostIpMappings && 0 != HostIpMappings.Count) { - sb.Append(" --add-host="); foreach (var mapping in HostIpMappings) - sb.Append($"--add-host={mapping.Item1}:{mapping.Item2}"); + sb.Append($" --add-host={mapping.Item1}:{mapping.Item2}"); } if (Ulimit.Count > 0)