-
Notifications
You must be signed in to change notification settings - Fork 236
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
Mark /opt/jboss/wildfly/standalone/{data,tmp} as data volumes #22
Comments
Yes, that's an idea. But everyone needs to be aware that if change something like this - these files will be stored on the disk always, even when the container was already removed. It's kinda sad that there is no easy way to list/remove these files. |
Personally, I don't like that idea.
|
I was going to ask to add the volume dir because then OpenShift will automatically provision empty volumes through Kube when the image runs. It is a shame Docker can't/doesn't properly manage the volumes. |
This: moby/moby#14242 may be relevant to the discussion too. |
This issue is old but is still opened, tough I consider that it can be closed (together with the PR #52), because defining volumes in the base image could break things for the consumers (and there is no way to turn back that change in the child images). If someone wants to add a volume, they can do so by specifying the volume when running the container. As for the reasons against VOLUME in the base image, I will quote what I wrote in the issue #39:
|
Wouldn't it be a good idea to mark
/opt/jboss/wildfly/standalone/{data,tmp}
as data volumes (1) ? They would bypass the Union File System causing a direct write, smaller diffs (2) and smaller container dir size.(1) https://docs.docker.com/reference/builder/#volume
(2):
The text was updated successfully, but these errors were encountered: