feat(templates): Use container name as hostname (#1084)

pull/1092/head
tfenster 7 years ago committed by Anthony Lapenna
parent 0d6ab099ac
commit 86c450bd91

@ -41,6 +41,7 @@ angular.module('portainer.services')
configuration.HostConfig.Privileged = template.Privileged;
configuration.HostConfig.RestartPolicy = { Name: template.RestartPolicy };
configuration.name = containerName;
configuration.Hostname = containerName;
configuration.Image = template.Image;
configuration.Env = TemplateHelper.EnvToStringArray(template.Env, containerMapping);
configuration.Cmd = ContainerHelper.commandStringToArray(template.Command);

Loading…
Cancel
Save