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

template error: "X" is not a method but has arguments #54

Closed
efenderbosch opened this issue Sep 22, 2016 · 1 comment
Closed

template error: "X" is not a method but has arguments #54

efenderbosch opened this issue Sep 22, 2016 · 1 comment

Comments

@efenderbosch
Copy link

efenderbosch commented Sep 22, 2016

Sorry if this isn't the place for this.

I'm trying to make a template for nginx.conf.

nginx.tmpl has this line:
resolver {{ default .Env.RESOLVER "127.0.0.11" }};

When the container starts, this error is thrown and the container stops:

template error: template: nginx.tmpl:34:20: executing "nginx.tmpl" at <.Env.RESOLVER>: RESOLVER is not a method but has arguments

This seems almost exactly like the example, but it isn't working. Any help figuring this out would be appreciated.

Thanks.

@efenderbosch
Copy link
Author

I'm not exactly sure why, but changing my ENTRYPOINT fixed this.

ENTRYPOINT ["dockerize", "-template", "nginx.tmpl:nginx.conf", "/usr/local/openresty/bin/openresty", "-g", "daemon off;"]

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