Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Swarm templating for driver-opt #2207

Open
mark-church opened this issue May 31, 2017 · 2 comments
Open

Support Swarm templating for driver-opt #2207

mark-church opened this issue May 31, 2017 · 2 comments

Comments

@mark-church
Copy link

docker/cli#62 introduced the capability to pass in driver-opt to services so that network driver specific options can be sent in per service. Swarm templating on this parameter would be very useful for a variety of scenarios that need to send task or service-specific information to a network driver.

A similar request was also requested by moby/moby#33408.

@stevvooe has offered to help with guidance if there are any contributors that want to take this on.

@benturner
Copy link

@stevvooe @mark-church, I'm interested in tackling this, can you guys point me in the right direction?

@stevvooe
Copy link
Contributor

@benturner Template expansion code is in https://github.com/docker/swarmkit/blob/master/template/expand.go#L16. Right now, we do it for the mounts fields and the env field. Just need to have this cover the networking fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants