-
Notifications
You must be signed in to change notification settings - Fork 122
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
Add support of cgroup_parent in docker_container #6
Comments
Files identified in the description: If these files are inaccurate, please update the |
@spokofono: Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information. Here are the items we could not find in your description:
Please set the description of this issue with this template: |
About |
SUMMARY
When trying to limit container's memory using kernel_memory, memory, memory_swap on centos, it says:
AFAIK, this is a problem with containerd.io and some people solved it using old containerd.io rpm. I trying not to downgrade packages and always stay with latest stable packages. I found the manual way using cgroup-parent feature -I'm trying to use docker-container only for change check, but it seems this module creates volumes different way that classic docker run command, which always end up as changed. So I'm stucked for now.
ISSUE TYPE
COMPONENT NAME
docker_container
ADDITIONAL INFORMATION
Error from dockerd:
Manual limit of container
Create using ansible:
but there is always change:
I also tried --mount type=bind ..., but result was the same.
When looking on docker inspect, both commands, ansible's docker_container as well as docker run create bind mounts as they should, but docker_container also changes container's config, and that is the cause of that change I believe. But I did not find a way how to adjust it, it seems the docker generates this config file when starting container.
So, the easiest would be to add cgroup-parent into docker_container such as podman has, IMHO https://docs.ansible.com/ansible/latest/collections/containers/podman/podman_container_module.html#parameter-cgroup_parent
Thank you.
The text was updated successfully, but these errors were encountered: