mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 23:56:58 +00:00
Update cheatsheets
This commit is contained in:
@@ -11,11 +11,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Update restart policy to apply when a specific container exits:
|
||||
|
||||
`docker update --restart={{always|no|on-failure|unless-stopped}} {{container_name}}`
|
||||
`docker update --restart {{always|no|on-failure|unless-stopped}} {{container_name}}`
|
||||
|
||||
- Update the policy to restart up to three times a specific container when it exits with non-zero exit status:
|
||||
|
||||
`docker update --restart=on-failure:3 {{container_name}}`
|
||||
`docker update --restart on-failure:3 {{container_name}}`
|
||||
|
||||
- Update the number of CPUs available to a specific container:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user