Replies: 2 comments 4 replies
-
Why not create a directory on /tmp and volume mount it into the container? |
Beta Was this translation helpful? Give feedback.
-
Here's one way to achieve this by using podman in podman assuming the desired task to run is
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm interested in running tasks with podman on a diskless host. The tasks will produce output on stdout, stderr, and some number of output files, let's say under
/out
.I was hoping something like this would have been possible, but it seems the tmpfs mount is destroyed before I can access it.
I tried creating a volume thinking it might not get destroyed, but the error makes it seem like it might only work with xfs
podman volume create --opt type=tmpfs --opt device=tmpfs --opt o=size=1M mytmp # Error: volume options size and inodes not supported. Filesystem does not support Project Quota
I then tried
which works, but that means dealing with keeping track of mounts, ensuring they are not reused (or clearing on reuse). If I do have to go that way, I'm also not sure what approach to do so as non-root (I need to look into how podman does this).
Is there another option or approach I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions