Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/ci/prepare_and_cleanup_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ function prepare_and_cleanup_runner {
local target_docker_volume_location="/mnt/var-lib-docker"
echo "Checking free space!"
df -H
echo "Cleaning /mnt just in case it is not empty"
sudo rm -rf /mnt/*
echo "Checking free space!"
df -H
echo "Making sure that /mnt is writeable"
sudo chown -R "${USER}" /mnt
# This is faster than docker prune
Expand All @@ -31,6 +35,7 @@ function prepare_and_cleanup_runner {
sudo mkdir -p "${target_docker_volume_location}" /var/lib/docker
sudo mount --bind "${target_docker_volume_location}" /var/lib/docker
sudo chown -R 0:0 "${target_docker_volume_location}"

sudo systemctl start docker
}

Expand Down