mirror of
https://github.com/containers/podman.git
synced 2025-08-05 19:02:37 +08:00
Merge pull request #4823 from vrothberg/gen-systemd
podman-generate-systemd --new
This commit is contained in:
@ -22,11 +22,16 @@ Generate files instead of printing to stdout. The generated files are named {co
|
||||
|
||||
Use the name of the container for the start, stop, and description in the unit file
|
||||
|
||||
**--new**
|
||||
|
||||
Create a new container via podman-run instead of starting an existing one. This option relies on container configuration files, which may not map directly to podman CLI flags; please review the generated output carefully before placing in production.
|
||||
|
||||
**--timeout**, **-t**=*value*
|
||||
|
||||
Override the default stop timeout for the container with the given value.
|
||||
|
||||
**--restart-policy**=*policy*
|
||||
|
||||
Set the systemd restart policy. The restart-policy must be one of: "no", "on-success", "on-failure", "on-abnormal",
|
||||
"on-watchdog", "on-abort", or "always". The default policy is *on-failure*.
|
||||
|
||||
|
Reference in New Issue
Block a user