Skip to content

Instantly share code, notes, and snippets.

@wizzup
Last active November 9, 2016 01:53
Show Gist options
  • Save wizzup/061fbba9c4aa1fe342d6d0e68a503d45 to your computer and use it in GitHub Desktop.
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
## /etc/systemd/system/docker.service
.include /usr/lib/systemd/system/docker.service
[Service]
Slice=limit.slice
## /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