-
Notifications
You must be signed in to change notification settings - Fork 118
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
/sys/fs/cgroup/memory/memory.limit_in_bytes is missing in the container in version > 4.2.0 #6118
Comments
Got exactly the same issue at docker desktop 4.3.2, docker server version info:
This issue break Open J9 feature |
@gtskaushik @zhangs-ibm Thanks for the ticket. Recent versions of Docker Desktop switched to cgroupv2 by default. From the linked ticket ibmruntimes/ci.docker#124 it looks like some Java runtime versions only support cgroupv1. I think the options are:
Note that some future Docker Desktop features might not work in cgroupv1 mode: this is because new features for the Linux kernel are only being added to cgroupv2. If you use cgroupv1 mode, I recommend asking your Java vendor to add support for cgroupv2. |
Thanks @djs55 Moved to the dev docker and used this as mentioned in the link above.
It is working now. Thanks. Is there any timeline on when this will be available for the main builds |
@gtskaushik thanks for the update. We're hoping to release an official build next week. In the official build the field is renamed to |
Issues go stale after 90 days of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
This file needs to be present inside the container which denotes the total available memory for the container. In this case, I had set the limits to 500mb
File name - /sys/fs/cgroup/memory/memory.limit_in_bytes is missing
File contents - 524288000
Actual behavior
In versions above 4.2.0, the directory, "/sys/fs/cgroup/memory" is missing in the containers. So, runtimes like java is not able use the container aware logics which relies on this.
Information
Steps to reproduce the behavior
docker run -it --rm ubuntu bash
cat /sys/fs/cgroup/memory/memory.limit_in_bytes
The text was updated successfully, but these errors were encountered: