You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm encountering an issue while attempting to build a local model deployment using the ModelBuilder class in SageMaker Studio. When I attempt to use ModelBuilder, I get the following error: DockerException: Error while fetching server API version: Expecting value: line 1 column 1 (char 0) The problem seems to stem from the fact that the Docker version in SageMaker Studio is not recognized, which causes this error when trying to interact with Docker as part of the local deployment process. This impacts the usage of the ModelBuilder class, as it is unable to retrieve necessary Docker API information.
Better explained issue with mlflow: aws/amazon-sagemaker-feedback#161.
By changing directly in sdk docker.from_env() to docker.from_env(version='1.44') solves this issue, but then there is another issue with local mdoe:
Forbidden ("Forbidden. Reason:
[ContainerCreate] SageMaker Studio Docker Usage only allows 'sagemaker' as network input")
The text was updated successfully, but these errors were encountered:
alvilssture
changed the title
Sagemaker API does not support un-versioned docker API's (Sagemaker Studio)
Sagemaker sdk does not support un-versioned docker API's (Sagemaker Studio)
Apr 27, 2025
Describe the bug
I'm encountering an issue while attempting to build a local model deployment using the ModelBuilder class in SageMaker Studio. When I attempt to use ModelBuilder, I get the following error:
DockerException: Error while fetching server API version: Expecting value: line 1 column 1 (char 0)
The problem seems to stem from the fact that the Docker version in SageMaker Studio is not recognized, which causes this error when trying to interact with Docker as part of the local deployment process. This impacts the usage of the ModelBuilder class, as it is unable to retrieve necessary Docker API information.Better explained issue with mlflow:
aws/amazon-sagemaker-feedback#161.
By changing directly in sdk docker.from_env() to docker.from_env(version='1.44') solves this issue, but then there is another issue with local mdoe:
To reproduce
In sagemaker studio:
Expected behavior
Are able to deploy a model locally/on cloud.
Screenshots or logs
The text was updated successfully, but these errors were encountered: