private CreateContainerParametersBuilder AddPortBinding(string containerPort, string hostPort) { if (!PortBindings.ContainsKey(containerPort)) { PortBindings.Add(containerPort, new List <PortBinding>()); } PortBindings[containerPort].Add(new PortBinding { HostIP = "0.0.0.0", HostPort = hostPort }); return(this); }
public void AddPortBinding() { PortBindings.Add(new PortBindingListItemModel()); }