Skip to content

Commit e23e44e

Browse files
rahul003ChoiByungWook
authored andcommitted
change: Mount metadata directory when starting local mode docker container (#510)
1 parent f2b0fa7 commit e23e44e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sagemaker/local/image.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,11 @@ def _prepare_training_volumes(
344344
volumes = []
345345

346346
volumes.append(_Volume(model_dir, "/opt/ml/model"))
347+
348+
# Mount the metadata directory on the notebook instance,
349+
# this is used by some DeepEngine libraries
350+
volumes.append(_Volume("/opt/ml/metadata", "/opt/ml/metadata"))
351+
347352
# Set up the channels for the containers. For local data we will
348353
# mount the local directory to the container. For S3 Data we will download the S3 data
349354
# first.

0 commit comments

Comments
 (0)