Optimized storage path

This commit is contained in:
Kevin Veen-Birkenbach 2024-01-10 12:19:19 +01:00
parent 905b8b5e71
commit 3ee5617f6d

View File

@ -35,7 +35,7 @@ def get_image(container):
def pause_and_move(storage_path, volume, volume_path, containers):
stop_containers(containers)
# Create a new directory on the Storage
storage_volume_path = os.path.join(storage_path, volume)
storage_volume_path = os.path.join(storage_path, 'data', 'docker', 'volumes', volume)
os.makedirs(storage_volume_path, exist_ok=False)
# Move the data