emptyDir volume in podman kube
not shared among containers in pod
#24930
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Issue Description
When running a Kubernetes pod, and volume-mounting a tmpfs-backed (
medium: 'Memory'
) emptyDir volume into multiple containers, each gets presented a different tmpfs. When usingmedium: ''
, ie. disk-backed (on btrfs, in my case), it does work as expected.Steps to reproduce the issue
Run
podman kube play podman-emptydir-bug.yml
, with the following YAML:So this creates a volume named
podman-emptydir-bug-temp
, and in the initContainer namedcreate-test-file
, a file is created, which should be visible in the mainuse-test-file
container.Clean up with
podman kube down podman-emptydir-bug.yml
.Describe the results you received
With
emptyDir: { medium: 'Memory' }
, I see the following in the journal:Describe the results you expected
Expected output, with
emptyDir: { medium: '' }
:podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
Additional information
I selected 'Privileged' above, but running privileged/rootful vs. rootless doesn't make any difference.
The text was updated successfully, but these errors were encountered: