--- id: sagemaker-containers version: "2.8.6.post2" license: Apache License 2.0 license_treatment: permissive maintenance: abandoned --- # sagemaker-containers — Open source library for creating containers to run on Amazon SageMaker. License: permissive · Maintenance: abandoned · Downloads: 189.8K/mo ## What it is and what it does SageMaker Containers is a deprecated library for building Docker images that run on Amazon SageMaker. It automates the setup of SageMaker-compatible containers by handling script entry points, hyperparameter injection as command-line arguments, and environment variable provisioning (such as SM_MODEL_DIR for model checkpoints and SM_CHANNEL_* for input data channels). The library was designed to simplify the process of bringing custom training and inference code to SageMaker without manually managing the container lifecycle. The package has been abandoned since June 2020 and is no longer maintained. AWS has explicitly deprecated it in favor of two successor projects: SageMaker Training Toolkit for model training and SageMaker Inference Toolkit for model serving. Any new projects should use those toolkits instead. Existing deployments may continue to work, but security updates, bug fixes, and compatibility with newer SageMaker features are no longer guaranteed. Use it for: - Building legacy SageMaker training containers that execute Python or shell scripts with hyperparameter support. - Creating SageMaker-compatible inference containers that read model artifacts from S3 and serve predictions. - Mapping SageMaker training job hyperparameters to script command-line arguments automatically. - Managing SageMaker environment variables (SM_MODEL_DIR, SM_CHANNEL_*) within custom training scripts. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides tools to build Docker containers compatible with Amazon SageMaker for model training and inference, handling script execution, hyperparameter mapping, and environment variable management. No. The package is abandoned (last update 2020-06-22, repository archived) and explicitly deprecated by AWS in favor of SageMaker Training Toolkit and SageMaker Inference Toolkit. High install friction and no active maintenance mean no security updates or compatibility fixes. Use the recommended successor toolkits for any new SageMaker work; only consider this if maintaining legacy code that already depends on it. ## Install pip install sagemaker-containers uv add sagemaker-containers poetry add sagemaker-containers ## Installing sagemaker-containers Before you install: High install friction and abandoned maintenance status. The package has not been updated since 2020-06-22 and its repository is archived. AWS explicitly recommends using SageMaker Training Toolkit and SageMaker Inference Toolkit instead. License in practice: Licensed under Apache License 2.0 (permissive), which permits commercial and private use with minimal restrictions, though the package's deprecated status should weigh heavily in any adoption decision. Quickstart: # Install pip install sagemaker-containers # In Dockerfile FROM tensorflow/tensorflow:2.0.0a0 RUN pip install sagemaker-containers COPY train.py /opt/ml/code/train.py ENV SAGEMAKER_PROGRAM train.py Package is deprecated; AWS recommends using SageMaker Training Toolkit or SageMaker Inference Toolkit instead. No runtime dependencies, but requires Docker and SageMaker integration. Verify before relying: - Whether existing SageMaker Containers deployments remain functional or if migration to the recommended toolkits is urgent. - Compatibility with current SageMaker API versions and whether deprecated features have been removed from SageMaker itself. ## Package facts - License: Apache License 2.0 (permissive) - Python support: unspecified - Install friction: high - Maintenance: abandoned - Downloads: 189.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags sagemaker docker container builder, sagemaker training container, aws sagemaker framework containers, sagemaker script execution, sagemaker inference container, docker container for sagemaker, sagemaker model serving container, deprecated, sagemaker, aws [View on SkillFed](https://skillfed.io/packages/sagemaker-containers) · [View on PyPI](https://pypi.org/project/sagemaker-containers/)