Skip to content

Commit

Permalink
debug docker res config-10
Browse files Browse the repository at this point in the history
  • Loading branch information
asm582 committed Dec 15, 2023
1 parent 1182c22 commit b45b7af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/mcad-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ jobs:
CPUAccounting=true
CPUQuota=33.33%
EOF
new_content='{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "cgroup-parent": "slice.conf" }'
new_content='{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "cgroup-parent": "/slice.conf" }'
sudo sed -i 's/{ "exec-opts": \["native.cgroupdriver=cgroupfs"\], "cgroup-parent": "\/actions_job" }/'"$new_content"'/' /etc/docker/daemon.json
cat /etc/docker/daemon.json
sudo systemctl restart docker
sleep 10
docker info | grep CPU
- name: checkout code
uses: actions/checkout@v3
with:
Expand Down

0 comments on commit b45b7af

Please sign in to comment.