mon
mon

Reputation: 22366

Is it possible to use docker commands in Sagemaker Studio

It is not possible to install docker in the SageMaker Studio. Is there a way to install and use it?

$ sudo yum install docker
Loaded plugins: ovl, priorities
No package docker available.
Error: Nothing to do

Upvotes: 1

Views: 3728

Answers (3)

Deepak Bandadi
Deepak Bandadi

Reputation: 1

It is now possible to run docker commands and build images within Kernel gateway app post enabling docker settings inside studio domain.

Documentation to enable docker - https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-local.html

Docker package installation steps for different OS on which kernel gateway app might be hosted https://github.com/aws-samples/amazon-sagemaker-local-mode/tree/main/sagemaker_studio_docker_cli_install

Upvotes: 0

yashaswi k
yashaswi k

Reputation: 435

The CLI for Amazon SageMaker Studio Image Build enables the creation of Amazon SageMaker-compatible Docker images directly within your Amazon SageMaker Studio environments.

Below are the commands for installing and the docker image creation:

!pip install sagemaker-studio-image-build

!sm-docker build . --repository < ecr-repo-name >:< image-name >

Upvotes: 0

mon
mon

Reputation: 22366

Not possible. Docker engine in Sagemaker Studio is not supported. Use SageMaker Docker Build CLI as described in Using the Amazon SageMaker Studio Image Build CLI to build container images from your Studio notebooks

Upvotes: 0

Related Questions