8000 'docker pull scratch' does nothing sane · Issue #12281 · moby/moby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
'docker pull scratch' does nothing sane #12281
Closed
@mmdriley

Description

@mmdriley

Begin with an empty image store: docker rmi -f $(docker images -q)
Then try this: docker pull scratch

This worked in versions <= 1.5.

In version 1.5, the result is:

$ docker pull scratch
Pulling repository scratch
511136ea3c5a: Download complete 
FATA[0003] 'scratch' is a reserved name 

Note that Docker does go to the trouble of pulling an image.

After which this is the state of the image store:

$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
<none>              <none>              511136ea3c5a        22 months ago       0 B

The image is downloaded but remains anonymous.

This commit started treating scratch as a "special case". Reasonable discussions can be had about whether or not that was a good idea, but the behavior of docker pull scratch is clearly incorrect. Either the command should be rejected before the image is downloaded or the command should run to completion successfully.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0