-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Un-deprecated command line short variant options of -c
#22621
Un-deprecated command line short variant options of -c
#22621
Conversation
@@ -661,7 +661,7 @@ container: | |||
| `--memory-swap=""` | Total memory limit (memory + swap, format: `<number>[<unit>]`). Number is a positive integer. Unit can be one of `b`, `k`, `m`, or `g`. | | |||
| `--memory-reservation=""` | Memory soft limit (format: `<number>[<unit>]`). Number is a positive integer. Unit can be one of `b`, `k`, `m`, or `g`. | | |||
| `--kernel-memory=""` | Kernel memory limit (format: `<number>[<unit>]`). Number is a positive integer. Unit can be one of `b`, `k`, `m`, or `g`. Minimum is 4M. | | |||
| `-c`, `--cpu-shares=0` | CPU shares (relative weight) | | |||
| `--cpu-shares=0` | CPU shares (relative weight) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can you re-align the |
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @thaJeztah I just updated the PR.
LGTM, thanks! |
LGTM (besides @thaJeztah's nit) |
:( I don't think this is a good idea. |
bd12bbd
to
8954b72
Compare
@runcom @cpuguy83 @thaJeztah Thanks for the review. Let me know if we want to un-deprecate this option so that I could update the PR. |
If @cpuguy83 doesn't like it, then probably we shouldn't do it :/ |
Had a quick chat with @cpuguy83 and he mentioned seeing a lot of people still using the shorthand @yongtang can you update the PR to un-deprecate? |
Since 1.9, the following short variant options have been deprecated in favor of their long variants: `docker run -c (--cpu-shares)` `docker build -c (--cpu-shares)` `docker create -c (--cpu-shares)` `docker update -c (--cpu-shares)` However, `-c` is still widely used and is considered as a convenient option for swarm (see moby#16271). This fix undeprecated the command line short variant options of `-c` and updated the deprecated.md. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
8954b72
to
fea7acf
Compare
-c
Thanks @thaJeztah. The pull request has been updated. Let me know if there are any issues. Note: I also updated the comment and title section of this pull request. |
LGTM, thanks @yongtang |
LGTM |
docs LGTM as well. Merging |
Since 1.9, the following short variant options have been deprecated in favor of their long variants:
docker run -c (--cpu-shares)
docker build -c (--cpu-shares)
docker create -c (--cpu-shares)
docker update -c (--cpu-shares)
However,
-c
is still widely used and is considered as a convenient option for swarm (see #16271).This fix undeprecated the command line short variant options of
-c
and updated the deprecated.md.Signed-off-by: Yong Tang yong.tang.github@outlook.com