Skip to content

sagemaker.image_uris.retrieve for custom docker images in ecr (no framework) #1902

Closed

Description

@walter-hernandez

What did you find confusing? Please describe.
The call sagemaker.amazon.amazon_estimator.get_image_uri was migrated to sagemaker.image_uris.retrieve . There is no information about how to make the calls to get the image url of a custom docker image in ecr that was created using Sagemaker .

Describe how documentation can be improved
How do you make the call to get the uri of custom docker image using the library sagemaker-training? This docker image is not using any of the prebuilt frameworks.

Additional context
Before you just did:
container_image_uri = get_image_uri(repo_name, repo_region, repo_version)

The above was specially useful when you were bringing your own custom docker images that were not using a framework in particular.

Kind regards,

Walter

Activity

  1. walter-hernandez commented on Sep 18, 2020

    @walter-hernandez
    Author

    Thank you for your quick answer!

    I was using get_image_uri as an automatic way to get the container url in ecr to pass to the estimator, but for what I see, it is not possible to do so anymore with the way that image_uris.retrieve() works

  2. walter-hernandez commented on Sep 18, 2020

    @walter-hernandez
    Author

    I am closing this issue. I am leaving a solution here if someone comes in the future into this thread with the same issue, a solution to get the container ecr uri is to do:
    '{0}.dkr.ecr.{1}.amazonaws.com/{2}:{3}'.format(account_id, region_name, ecr_repository_name, version)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions