mirror of
https://github.com/dokploy/dokploy.git
synced 2026-06-14 03:19:49 +00:00
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:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user