-
Notifications
You must be signed in to change notification settings - Fork 612
Docker-Gen Cannot Generate Configuration #15
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Example is in my HAProxy Configuration Generator container and the HAProxy container itself: HAProxy Config HAProxy |
I'm not sure what's happening. I tried your containers but but wasn't quite sure how to use them. I'll see if I can reproduce using --volumes-from. If you have some steps that I can follow to reproduce the error that would be helpful. |
Basically if the generated template output path is on an external volume there is a copy error, I believe due to how linux handles hardlinks. |
I seem to have the same (or related) issue:
Most likely because docker-gen tries to do a file rename instead of a file copy.
I managed to workaround the problem by explicitly overriding the TMPDIR shell variable as such (for example):
|
"Unable to create dest file /etc/nginx/conf.d/default.conf: rename /etc/nginx/conf.d/docker-gen" I got this problem when launching (via docker-compose) from a shared folder on a windows host (linux guest in virtualbox) presumably due to associated file manipulation limitations as outlined above. Solution: run on the guest fs. |
When the output file is set to be written to a volume, docker-gen is unable to create the configuration there due to what appears to be a hard link error.
The text was updated successfully, but these errors were encountered: