-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Describe the bug
jsonschema.exceptions.ValidationError: Additional properties are not allowed ('container_root' was unexpected)
Failed validating 'additionalProperties' in schema['properties']['local']:
{'additionalProperties': False,
'properties': {'container_config': {'type': 'object'},
'local_code': {'type': 'boolean'},
'region_name': {'type': 'string'},
'serving_port': {'type': 'integer'}},
'type': 'object'}
The local.container_root variable controls where Sagemaker creates the docker compose files.
In function: def _create_tmp_folder(self): in sagemaker-python-sdk/src/sagemaker/local/image.py
# Docker cannot mount Mac OS /var folder properly see
# https://forums.docker.com/t/var-folders-isnt-mounted-properly/9600
# Only apply this workaround if the user didn't provide an alternate storage root dir.
Due to the new validation in v2.192 I cannot set this variable though it is still used in the code.