You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -358,9 +358,11 @@ Basic flags:
358
358
-:whale::blue_square:`-t, --tty`: Allocate a pseudo-TTY
359
359
-:warning: WIP: currently `-t` conflicts with `-d`
360
360
-:whale::blue_square:`-d, --detach`: Run container in background and print container ID
361
-
-:whale:`--restart=(no|always)`: Restart policy to apply when a container exits
361
+
-:whale:`--restart=(no|always|on-failure|unless-stopped)`: Restart policy to apply when a container exits
362
362
- Default: "no"
363
-
-:warning: No support for `on-failure` and `unless-stopped`
363
+
- always: Always restart the container if it stops.
364
+
- on-failure[:max-retries]: Restart only if the container exits with a non-zero exit status. Optionally, limit the number of times attempts to restart the container using the :max-retries option.
365
+
- unless-stopped: Always restart the container unless it is stopped.
364
366
-:whale:`--rm`: Automatically remove the container when it exits
365
367
-:whale:`--pull=(always|missing|never)`: Pull image before running
0 commit comments