Tthe data is not transferred from the init container to the application (regular) container on the volume.
Issue Description
The problem indicated in notification no. #29555 was only partially corrected by the modification in main. Finally, tempfs can be seen in the application container (regular) on the volume created by the init container. This is not enough, because the data placed there by the init container (e.g. secret - key used for encryption) is no longer found there by the main container.
We are attaching a sample and test.
Steps to reproduce the issue
Use Podmain (see Additional environment details) Run ./test.sh. The test creates an isolated Podman storage, pulls busybox:latest, and runs podman kube play tmpfs-test.yaml. The init container writes Secret-Data-123 to /run/secret. The regular container reads /run/secret and reports the filesystem type and contents. Observe that /run/secret is mounted as tmpfs, but the data written by the init container is missing. The test reports: DATA: MISSING [FAIL] init data NOT shared (DATA=MISSING) — the tmpfs patch is missing
Describe the results you received
The test fails because the emptyDir tmpfs is not shared correctly between the init container and the regular container. The observed output is: DATA: MISSING FSLINE: tmpfs tmpfs 65536 0 65536 0% /run/secret
[FAIL] init data NOT shared (DATA=MISSING) — the tmpfs patch is missing
Describe the results you expected
The init container writes Secret-Data-123 to /run/secret, and the regular container should be able to read the same data from the same emptyDir volume.
The volume should remain available for the lifetime of the pod, and /run/secret should be backed by tmpfs with the configured 64 MiB sizeLimit.
podman info output
host:
arch: amd64
buildahVersion: 1.45.0
cdiSpecDirs:
- /etc/cdi
- /var/run/cdi
cgroupControllers:
- cpu
- memory
- pids
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon_2.1.10+ds1-1build2_amd64
path: /usr/bin/conmon
version: 'conmon version 2.1.10, commit: unknown'
cpuUtilization:
idlePercent: 95.26
systemPercent: 0.89
userPercent: 3.84
cpus: 8
databaseBackend: sqlite
distribution:
codename: noble
distribution: ubuntu
version: "24.04"
eventLogger: journald
freeLocks: 1966
hostname: varadi-HP-255-G8
idMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 165536
size: 65536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 165536
size: 65536
kernel: 6.8.0-138-generic
linkmode: dynamic
logDriver: journald
memAvailable: 19827314688
memFree: 1621880832
memTotal: 23025713152
networkBackend: netavark
networkBackendInfo:
backend: netavark
defaultNetwork: podman
dns:
package: aardvark-dns_2.1.0-1local1_amd64
path: /usr/lib/podman/aardvark-dns
version: aardvark-dns 2.1.0
package: netavark_2.1.0-1local1_amd64
path: /usr/lib/podman/netavark
version: netavark 2.1.0
ociRuntime:
name: crun
package: crun_1.29-1local1_amd64
path: /usr/bin/crun
version: |-
crun version 1.29
commit: d66af6a0fc2ab5fabd951b427a292344632ce074
rundir: /run/user/1000/crun
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +JSON_C
os: linux
pasta:
executable: /usr/bin/pasta
package: passt_0.0~git20260728.f8df3f1-1local1_amd64
version: |
pasta unknown version
Copyright Red Hat
GNU General Public License, version 2 or later
<https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
remoteSocket:
exists: true
path: /run/user/1000/podman/podman.sock
rootlessNetworkCmd: pasta
rootlessPortForwarder: rootlessport
security:
apparmorEnabled: false
capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
rootless: true
seccompEnabled: true
seccompProfilePath: /usr/share/containers/seccomp.json
selinuxEnabled: false
serviceIsRemote: false
swapFree: 2147479552
swapTotal: 2147479552
uptime: 22h 39m 42.00s (Approximately 0.92 days)
variant: ""
plugins:
authorization: null
log:
- k8s-file
- none
- passthrough
- journald
network:
- bridge
- macvlan
- ipvlan
volume:
- local
registries: {}
store:
containerStore:
number: 22
paused: 0
running: 22
stopped: 0
graphDriverName: overlay
graphOptions: {}
graphRoot: /home/varadi/.local/share/containers/storage
graphRootAllocated: 185747415040
graphRootUsed: 102673833984
graphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "true"
Supports d_type: "true"
Supports shifting: "false"
Supports volatile: "true"
Using metacopy: "false"
imageCopyTmpDir: /var/tmp
imageStore:
number: 11
runRoot: /run/user/1000/containers
transientStore: false
volumePath: /home/varadi/.local/share/containers/storage/volumes
version:
APIVersion: 6.2.0-dev
Built: 1786183200
BuiltTime: Sat Aug 8 12:00:00 2026
GitCommit: 8bdb99fb59c2fe9bed6a18507fd0ae6b1bfbda1f-dirty
GoVersion: go1.25.9
Os: linux
OsArch: linux/amd64
Version: 6.2.0-dev
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Podman source from Git master branch, which already contains the following commit-ID 70d9884
Additional information
If you managed to cause the indicated error, then the deb packages do not count, because they have to be recreated from the corrected version anyway. WE are currently using a package modified with our own patch (also sent in).
The debian packages are compressed so I can upload them.
podman_6.1.0~rc1-1local1-tmpfs_amd64.deb.gz podman_6.1.0~rc1-1local1_amd64.deb.gz netavark_2.1.0-1local1_amd64.deb.gz crun_1.29-1local1_amd64.deb.gz aardvark-dns_2.1.0-1local1_amd64.deb.gz passt_0.0~git20260728.f8df3f1-1local1_amd64.deb.gz
/assign
@varadi-1967 I could reproduce the original issue in https://github.com/podman-container-tools/podman/issues/29555. I haven‘t used local .deb packages, because I didn‘t think they were relevant. Let me know if this is a false assumption.
I‘ll check what‘s still missing next.
The root cause to this issue is the umount of the corresponding host tmpfs, once the init container exits, which causes data to be lost and the volume to be remounted empty on the regular containers afterwards, so that no init container written data is visible anymore.
I've opened a PR to as an attempt to fix this issue: https://github.com/podman-container-tools/podman/pull/29754
A friendly reminder that this issue had no activity for 30 days.