-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
improve error message for cgroup limit #10519
Comments
I was just going to open an issue relating to this. This warning should probably only show up if someone is actually setting a memory restriction. 99% of folks won't care otherwise. |
Why does it say "Cgroup v2" ? And what was wrong with the original message, as issued by Docker ? (for v1)
|
Was added in #10512 But I think it should actually have been From #10371 (comment) Reopened that issue, it was closed by the bot by an earlier commit (when I thought it was just a warning) |
Sorry that I misunderstood this issue #10371 , so I added a wrong warning message. I saw different materials, and one said it is the cgroup v2 problem and the other said the error in #10371 is because it cannot set memory limit. So somehow I linked them together and wrote this inaccurate warning message. |
I think the confusing part is that Docker handles cgroup v1 and v2 very differently, with regards to the parameters. Then again, |
@hetong07 I agree with @tstromberg if user did not Set --memory by flag ( we should NOT warn the user)
|
/assign |
❗ Cgroup v2 does not allow setting memory, if you want to set memory, please modify your Grub as instructed in https://docs.docker.com/engine/install/linux-postinstall/#your-k
ernel-does-not-support-cgroup-swap-limit-capabilities
The text was updated successfully, but these errors were encountered: