Optimize ubuntu image pull to only happen when image is missing

Co-authored-by: Siumauricio <47042324+Siumauricio@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-20 01:49:03 +00:00
parent 5f441f5b54
commit f4ec77ade8
@@ -28,7 +28,7 @@ export const backupVolume = async (
echo "Starting volume backup"
echo "Dir: ${volumeBackupPath}"
echo "Ensuring ubuntu image is available..."
docker pull ubuntu:latest
docker image inspect ubuntu:latest > /dev/null 2>&1 || docker pull ubuntu:latest
echo "Ubuntu image ready ✅"
docker run --rm \
-v ${volumeName}:/volume_data \