-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Container systemd service unit depends on NFS Mounting #23273
Comments
The system service unit seems to only rely on If possible, when executing
|
Could you look at using quadlets rather the podman systemd generate, then you can configure the quadlet file the way you want from a systemd point of view. |
I am currently not considering using quadlet. |
I don't think it is realistic to expect we can expose all the systemd configuration from the podman CLI. If you need a custom configuration, just edit the file |
I think |
"podman generate systemd" is a deprecated command. We are not going to add new flags to a command that will likely be dropped in a future release |
Issue Description
I deployed my service using podman-compose and mounted an NFS directory (/mnt/data/download) for the container in Centos Stream9 (5.14.0-437.el9.x86_6). And create a systemd service unit using the
podman generate systemd
command.After my deployment is complete, I can access files in the NFS directory within the container, but when the host restarts, the NFS directory (/mnt/data/download) in the container is always empty.
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
The container works normally, but the nfs directory (/mnt/data/download) is empty.
A manual restart is required to restore.
Describe the results you expected
After restarting the host, the container needs to be mounted by NFS and then started (especially when NFS servers are started simultaneously).
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Additional information
The text was updated successfully, but these errors were encountered: