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
Volume is not created when using VOLUME in Dockerfile #2170
Comments
|
I believe our default driver for image volumes is to create per-container persistent directories, for which this would be the expected behavior. We don't presently support named volumes for image volumes, but I don't believe it would be that hard to implement. We should check what the default behavior in Docker is and reference that. |
|
We should be creating that. |
|
@rhatdan tl;dr Does NOT work with podman 1.0. Version check: Check if a volume is present in container spec: Run test: Check if volume is present on a separate terminal: |
|
Is myvolume present within a container you run? |
|
Yes. |
|
This is working as intended given the current image code. We don't yet have support for making volumes for image volumes. Probably would not be difficult if we wanted to add it. |
|
Works fine for Root podman. Also works for rootless. podman -v |
|
Ok, I see it now, this volume is not listed under podman volume though. |
|
@rhatdan with podman build, buildah bud is doing all the work and we don't have the volumes support in buildah yet. I think that is why the volume is not being created under the path that podman volume checks for any volumes created. I believe something we have to add. |
|
I found a bunch of bogs on podman volumes and have opened a PR on this. Lots of fixes in #2229 |
|
This is fixed in master. |
/kind bug
Podman does NOT create a volume at run when it is specified in the Dockerfile.
Steps to reproduce the issue:
On a separate terminal, check volumes present :
Describe the results you received:
Describe the results you expected:
We should have a volume.
Additional information you deem important (e.g. issue happens only occasionally):
Could you please tell me if this is expected or a bug ?
Thanks
Output of
podman version:Output of
podman info:Additional environment details (AWS, VirtualBox, physical, etc.):
Fedora 29
The text was updated successfully, but these errors were encountered: