Hola {{ env "HELLO" }}! Vamos a listar todos los "Placeholders" disponibles para los templates según la documentación oficial: https://docs.docker.com/engine/reference/commandline/service_create/#create-services-using-templates
Placeholder | Valor |
---|---|
Service ID | {{.Service.ID}} |
Service name | {{.Service.Name}} |
Service labels | {{.Service.Labels}} |
Node ID | {{.Node.ID}} |
Node Hostname | {{.Node.Hostname}} |
Task ID | {{.Task.ID}} |
Task /container name | {{.Task.Name}} |
Task slot | {{.Task.Slot}} |