Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Adopt image name splitting logic from docker #41

Merged
merged 1 commit into from
Oct 13, 2015

Conversation

fxposter
Copy link
Contributor

References:

Also, one of the tests was invalid, cause "hub" is not a valid registry.
This can be checked by running this in command line:

$ docker tag ubuntu hub/ns/name:1
~/Projects/github/rocker 0 (tags-with-dots +) $ docker push hub/ns/name:1
The push refers to a repository [docker.io/hub/ns/name] (len: 1)
91e54dfb1179: Buffering to Disk
unauthorized: access to the requested resource is not authorized

References:
- https://github.com/docker/docker/blob/master/api/client/tag.go#L22-L30
- https://github.com/docker/docker/blob/master/pkg/parsers/parsers.go#L100-L118
- https://github.com/docker/docker/blob/a1c373197fe7f865ccac0ad338c213e3d1f863de/registry/config.go#L240-L251
- https://github.com/docker/docker/blob/a1c373197fe7f865ccac0ad338c213e3d1f863de/registry/config.go#L285-L300

Also, one of the tests was invalid, cause "hub" is not a valid registry.
This can be checked by running this in command line:
    $ docker tag ubuntu hub/ns/name:1
    ~/Projects/github/rocker 0 (tags-with-dots +) $ docker push hub/ns/name:1
    The push refers to a repository [docker.io/hub/ns/name] (len: 1)
    91e54dfb1179: Buffering to Disk
    unauthorized: access to the requested resource is not authorized
@ybogdanov ybogdanov added this to the 0.2.3 milestone Oct 13, 2015
@ybogdanov ybogdanov added the bug label Oct 13, 2015
@ybogdanov ybogdanov self-assigned this Oct 13, 2015
@ybogdanov
Copy link
Contributor

Hey, thanks! I will refactor it a bit after a merge to keep your PR in place.

ybogdanov pushed a commit that referenced this pull request Oct 13, 2015
Adopt image name splitting logic from docker
@ybogdanov ybogdanov merged commit d2098bd into grammarly:master Oct 13, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants