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

Not Running on Windows: Suspected Bug in Dockerfile #480

Closed
Chris-Maechler opened this issue Jan 19, 2024 · 3 comments
Closed

Not Running on Windows: Suspected Bug in Dockerfile #480

Chris-Maechler opened this issue Jan 19, 2024 · 3 comments

Comments

@Chris-Maechler
Copy link

Somewhere after version 8.1.8 the zeebe container is constantly restarting because it cannot access files in /usr/local/zeebe/data/ (.topology.meta in 8.4.0). I'm using the .env and Dockerfile from this repository. All other containers like different databases, kibana, keycloak, my own images, etc. run completely fine.

According to the official Dockerfile documentation:

If any build steps change the data within the volume after it has been declared, those changes will be discarded.

So you would have to move VOLUME declarations down after you create the directories and after the COPY instructions.

I also read somewhere that VOLUME would create an empty directory if it doesn't exist yet. In this case mkdir would fail and because you chain with && the chown and chmod would be ignored.

@dwknippers
Copy link

Seems like removing older volumes, created by earlier images, solves these issues.

@aabouzaid
Copy link
Member

aabouzaid commented Mar 11, 2024

@Chris-Maechler Thanks for reporting this.
Could you please provide more info about the versions? (e.g. OS, Docker daemon and CLI versions) and how to reproduce the issue.

@Chris-Maechler
Copy link
Author

Yes, dwknippers is right, deleting the volumes solved the problem.

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