Add pre-pull of ubuntu image before volume backup to prevent race condition with cleanup

Co-authored-by: Siumauricio <47042324+Siumauricio@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-20 01:47:10 +00:00
parent ed1e3244c6
commit 5f441f5b54

View File

@@ -27,6 +27,9 @@ export const backupVolume = async (
echo "Turning off volume backup: ${turnOff ? "Yes" : "No"}"
echo "Starting volume backup"
echo "Dir: ${volumeBackupPath}"
echo "Ensuring ubuntu image is available..."
docker pull ubuntu:latest
echo "Ubuntu image ready ✅"
docker run --rm \
-v ${volumeName}:/volume_data \
-v ${volumeBackupPath}:/backup \