Last active
November 9, 2016 01:53
-
-
Save wizzup/061fbba9c4aa1fe342d6d0e68a503d45 to your computer and use it in GitHub Desktop.
Fix docker cause other program unresponsive by moving docker.service out-of system.slice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## /etc/systemd/system/docker.service | |
.include /usr/lib/systemd/system/docker.service | |
[Service] | |
Slice=limit.slice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## /etc/systemd/system/limit.slice | |
[Unit] | |
Description=Limited resources Slice | |
DefaultDependencies=no | |
Before=slices.target | |
[Slice] | |
CPUAccounting=yes | |
CPUQuota=80% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment