Skip to content
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

Support cgroup docker_limit.slice memory and cpu limits for docker daemon #324

Closed
wants to merge 4 commits into from

Conversation

mickelindahl
Copy link

I had to restrict the total resources that the docker daemon can utilize on a server. The solution inlcuded adding a docker_limit.slice file to /etc/systemd/system (see https://github.com/mickelindahl/docker_daemon_limit_total_resources). This results in that in "/proc/self/cgroup" containers are named .../docker_limit.slice/{container id}. Thus matchDockerCurrentContainerID nor matchECSCurrentContainerID could pick up the container name which left me with a broken nginx-proxy. I have added an additional funcition matchDockerLimitCurrentContainerID witch solves this problem. Would love if you could add this to the project.

Cheers
/Mikael

@mickelindahl mickelindahl changed the title Match containers with cgroup slice limit Support cgroup .slice memory and cpu limit for docker daemon May 31, 2020
@mickelindahl mickelindahl changed the title Support cgroup .slice memory and cpu limit for docker daemon Support cgroup docker_limit.slice memory and cpu limit for docker daemon May 31, 2020
@mickelindahl mickelindahl changed the title Support cgroup docker_limit.slice memory and cpu limit for docker daemon Support cgroup docker_limit.slice memory and cpu limits for docker daemon May 31, 2020
@buchdag
Copy link
Member

buchdag commented Aug 8, 2021

Superseded by #336, #345 and #356

@buchdag buchdag closed this Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants