Skip to content

Commit 54abd4f

Browse files
authored
Rollup merge of #70847 - pietroalbini:ci-move-docker-lib, r=Mark-Simulacrum
ci: move /var/lib/docker to /mnt on GHA There are some builders that are running out of disk space while building the Docker images, such as arm-android. This moves and symlinks `/var/lib/docker` to the `/mnt` partition on Linux GHA. Example of a build failing because of this: https://github.com/rust-lang-ci/rust/runs/564628621
2 parents 956e50b + 1ce9257 commit 54abd4f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ci/scripts/symlink-build-dir.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,10 @@ elif isLinux && isGitHubActions; then
2424
mv "${current_dir}" /mnt/more-space/workspace
2525
ln -s /mnt/more-space/workspace "${current_dir}"
2626
cd "${current_dir}"
27+
28+
# Move the Docker data directory to /mnt
29+
sudo systemctl stop docker.service
30+
sudo mv /var/lib/docker /mnt/docker
31+
sudo ln -s /mnt/docker /var/lib/docker
32+
sudo systemctl start docker.service
2733
fi

0 commit comments

Comments
 (0)