mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-11-05 04:38:16 +00:00
Optimized storage path
This commit is contained in:
@@ -35,7 +35,7 @@ def get_image(container):
|
|||||||
def pause_and_move(storage_path, volume, volume_path, containers):
|
def pause_and_move(storage_path, volume, volume_path, containers):
|
||||||
stop_containers(containers)
|
stop_containers(containers)
|
||||||
# Create a new directory on the Storage
|
# 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)
|
os.makedirs(storage_volume_path, exist_ok=False)
|
||||||
|
|
||||||
# Move the data
|
# Move the data
|
||||||
|
|||||||
Reference in New Issue
Block a user