Support Docker service creation using templates for hostname, env, mount #9420
jnehlmeier
started this conversation in
Ideas
Replies: 2 comments
-
Any updates on this one, I'm looking the exactly feature. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@kasamachenkaow no ETA on this, any contribution is welcome. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
Using templates for hostname, env, mount is generally helpful if you need unique but still meaningful hostnames, env, mounts.
E.g. when using monitoring tools to monitor all containers running in a swarm cluster it is usually desired to set the container's hostname to something meaningful, e.g.
{{.Node.Hostname}}-{{.Service.Name}}-{{.Node.ID}}
Or if you want to create non-local volumes as described here moby/moby#32561 using templates is helpful.
Describe the solution you'd like
Provide UI for feature described in:
https://docs.docker.com/engine/reference/commandline/service_create/#create-services-using-templates
Describe alternatives you've considered
Creating service using Docker CLI on console.
Beta Was this translation helpful? Give feedback.
All reactions