Skip to content

Commit 5e4a2c4

Browse files
Use /dev/sdb1 to save docker's data in CI (#723)
1 parent a4af869 commit 5e4a2c4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/test-integration-skywalking-e2e.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ jobs:
3939
docker rmi $(docker images -q) -f
4040
df -h
4141
42+
# the runner machine has a disk /dev/sdb1 which mounted to /mnt, and it has more free disk than /dev/sda1.
43+
# we can use it to save docker's data to avoid bookie error due to lack of disk.
44+
- name: change docker data dir
45+
run: |
46+
sudo service docker stop
47+
echo '{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "cgroup-parent": "/actions_job", "data-root": "/mnt/docker" }' | sudo tee /etc/docker/daemon.json
48+
sudo service docker start
49+
4250
- name: Checkout
4351
uses: actions/checkout@v3
4452
with:

0 commit comments

Comments
 (0)