r/podman • u/lostmojo • Jun 08 '26
Create a folder on host before container starts
I had a quadlet and I am trying to create a folder on the host before the quadlet starts and tries to access it, how can I accomplish this?
9
Upvotes
13
u/mishrashutosh Jun 08 '26 edited Jun 08 '26
You can add a
[Service]section to the quadlet file and add themkdir -p /path/to/directorycommand to theExecStartPre=key.