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

Cannot evaluate go template for env #7

Open
zhaoyao91 opened this issue Mar 6, 2018 · 0 comments
Open

Cannot evaluate go template for env #7

zhaoyao91 opened this issue Mar 6, 2018 · 0 comments

Comments

@zhaoyao91
Copy link

I try to specify LOGSPOUT_STREAM={{.InstanceID}}-{{.Name}} in my compose file to deploy logspout in swarm cluster, it complains that

Updating service logspout_logspout (id: y14jnec1bcszr62zwu1d96ba3)
failed to update service logspout_logspout: Error response from daemon: rpc error: code = InvalidArgument desc = expanding env failed: expanding env "LOGSPOUT_STREAM={{.InstanceID}}-{{.Name}}": template: expansion:1:2: executing "expansion" at <.InstanceID>: can't evaluate field InstanceID in type *template.Context
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

1 participant