Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow uppercase characters in image reference hostname #20175

Merged
merged 1 commit into from
Feb 10, 2016

Conversation

aaronlehmann
Copy link
Contributor

This PR makes restores the pre-Docker 1.10 behavior of allowing
uppercase characters in registry hostnames.

Note that this only applies to hostnames, not remote image names.
Previous versions also prohibited uppercase letters after the hostname,
but Docker 1.10 extended this to the hostname itself.

  • Vendor updated distribution docker/1.10 branch.
  • Add a check to "normalize" that rejects remote names with uppercase
    letters.
  • Add test cases to TestTagValidPrefixedRepo and
    TestTagInvalidUnprefixedRepo

Fixes: #20056

cc @dmcgowan @tonistiigi @tiborvass

This PR makes restores the pre-Docker 1.10 behavior of allowing
uppercase characters in registry hostnames.

Note that this only applies to hostnames, not remote image names.
Previous versions also prohibited uppercase letters after the hostname,
but Docker 1.10 extended this to the hostname itself.

- Vendor updated distribution docker/1.10 branch.

- Add a check to "normalize" that rejects remote names with uppercase
  letters.

- Add test cases to TestTagValidPrefixedRepo and
  TestTagInvalidUnprefixedRepo

Fixes: moby#20056

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
@cpuguy83
Copy link
Member

LGTM

@tonistiigi
Copy link
Member

LGTM for 1.10.1

But for 1.11 we really need to get rid of these hacks and force-lowercase everything. docker pull Example.com/foo and docker pull example.com/foo should make the same image.

@GordonTheTurtle
Copy link

Job: Docker-PRs-WoW-TP4 FAILED:

---
Current directory is /c/gopath/src/github.com/docker/docker
---------------------------------------------------------------------------


-----------------------------------------------
ERROR: Failed with exitcode 1 at Wed Feb 10 08:14:05 CUT 2016.
-----------------------------------------------


INFO: Tidying up at end of run
INFO: Nuking /d/CI
INFO: Zapped successfully
INFO: End of cleanup
INFO: Ended at Wed Feb 10 08:14:06 CUT 2016 (0m 2s)
Build step 'Execute shell' marked build as failure
[PostBuildScript] - Execution post build scripts.
[docker] $ sh -xe D:\temp\hudson6599106779158892175.sh
+ set +e
+ set +x
INFO: End of cleanup
Notifying endpoint 'HTTP:https://leeroy.dockerproject.org/notification/jenkins'
---

cpuguy83 added a commit that referenced this pull request Feb 10, 2016
Allow uppercase characters in image reference hostname
@cpuguy83 cpuguy83 merged commit 53a9b1c into moby:bump_v1.10.1 Feb 10, 2016
@calavera calavera deleted the upper-case-hostnames-1.10 branch February 10, 2016 15:47
@aaronlehmann
Copy link
Contributor Author

Since this was against 1.10, should I open a separate PR against master to apply equivalent changes?

The vendor update won't apply cleanly to master, since it is on a later version of distribution.

On Feb 10, 2016, at 07:34, Brian Goff notifications@github.com wrote:

Merged #20175.


Reply to this email directly or view it on GitHub.

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

Successfully merging this pull request may close these issues.

5 participants