From 5a39309389b8d7e351dc16ac7d276f3ea90ef909 Mon Sep 17 00:00:00 2001 From: jiangpengcheng Date: Mon, 26 Feb 2024 17:33:59 +0800 Subject: [PATCH] Use /dev/sdb1 to save docker's data in CI --- .github/workflows/test-integration-skywalking-e2e.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test-integration-skywalking-e2e.yml b/.github/workflows/test-integration-skywalking-e2e.yml index 034848ba..fb8a8786 100644 --- a/.github/workflows/test-integration-skywalking-e2e.yml +++ b/.github/workflows/test-integration-skywalking-e2e.yml @@ -39,6 +39,14 @@ jobs: docker rmi $(docker images -q) -f df -h + # the runner machine has a disk /dev/sdb1 which mounted to /mnt, and it has more free disk than /dev/sda1. + # we can use it to save docker's data to avoid bookie error due to lack of disk. + - name: change docker data dir + run: | + sudo service docker stop + echo '{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "cgroup-parent": "/actions_job", "data-root": "/mnt/docker" }' | sudo tee /etc/docker/daemon.json + sudo service docker start + - name: Checkout uses: actions/checkout@v3 with: