-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15548 from edsantiago/docs_dedup_restart
[CI:DOCS] Man pages: refactor common options: --restart
- Loading branch information
Showing
3 changed files
with
17 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#### **--restart**=*policy* | ||
|
||
Restart policy to follow when containers exit. | ||
Restart policy will not take effect if a container is stopped via the **podman kill** or **podman stop** commands. | ||
|
||
Valid _policy_ values are: | ||
|
||
- `no` : Do not restart containers on exit | ||
- `on-failure[:max_retries]` : Restart containers when they exit with a non-zero exit code, retrying indefinitely or until the optional *max_retries* count is hit | ||
- `always` : Restart containers when they exit, regardless of status, retrying indefinitely | ||
- `unless-stopped` : Identical to **always** | ||
|
||
Please note that restart will not restart containers after a system reboot. | ||
If this functionality is required in your environment, you can invoke Podman from a **systemd.unit**(5) file, or create an init script for whichever init system is in use. | ||
To generate systemd unit files, please see **podman generate systemd**. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters