container_def: Create a definition for executing a container as part of a...

View source: R/session.R

container_defR Documentation

Create a definition for executing a container as part of a SageMaker model.

Description

Create a definition for executing a container as part of a SageMaker model.

Usage

container_def(
  image_uri,
  model_data_url = NULL,
  env = NULL,
  container_mode = NULL,
  image_config = NULL
)

Arguments

image_uri

(str): Docker image to run for this container.

model_data_url

(str): S3 URI of data required by this container, e.g. SageMaker training job model artifacts (default: None).

env

(dict[str, str]): Environment variables to set inside the container (default: None).

container_mode

(str): The model container mode. Valid modes:

  • MultiModel: Indicates that model container can support hosting multiple models

  • SingleModel: Indicates that model container can support hosting a single model This is the default model container mode when container_mode = None

image_config

(dict[str, str]): Specifies whether the image of model container is pulled from ECR, or private registry in your VPC. By default it is set to pull model container image from ECR. (default: None).

Value

dict[str, str]: A complete container definition object usable with the CreateModel API if passed via 'PrimaryContainers' field.


DyfanJones/sagemaker-r-local documentation built on June 14, 2022, 10:32 p.m.