aws / aws/amazon-sagemaker-feedback

Docker FROM scratch returns "Image scratch is not an ECR Image"

Open
#219 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
10
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### Product Version

- [ ] Amazon SageMaker Studio Classic
- [x] Amazon SageMaker Studio
- [ ] Issue is not related to SageMaker Studio

### Issue Description

I am trying to build a Docker Container within Sagemaker Studio AI starting from scratch. I have enabled Docker for the Domain.

Simplest example:
```
FROM scratch

RUN echo "Hello"
```

### Expected Behavior

I would expect that scratch would be treated as a special case as according to documentation I don't see anyway to bring it into ECR:

```
While scratch appears in Docker’s repository on the hub, you can’t pull it, run it, or tag any image with the name scratch. Instead, you can refer to it in your Dockerfile. For example, to create a minimal container using scratch
```

### Observed Behavior

`{"message":"Forbidden. Reason: [ValidateVPCOnlyModeImage] Image scratch is not an ECR Image. Studio VPC Only Mode allows Amazon ECR private registry Images belonging to trusted AWS Account IDs configured in Studio Domain API Settings"}`

### Product Category

Code-Editor

### Feedback Category

Configuration and Setup

### Other Details

_No response_

Contributor guide

Open the contributing guide

Research direction

The issue provides no repository files, tests, or implementation entry points. Start by reproducing the minimal Dockerfile with `FROM scratch` in SageMaker Studio with Docker enabled, then trace the VPC-only image validation; done means this special base is accepted without the reported ECR-image error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, docker
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.