-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Allow uppercase characters in image reference hostname #20175
Conversation
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>
LGTM |
LGTM for 1.10.1 But for 1.11 we really need to get rid of these hacks and force-lowercase everything. |
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'
---
|
Allow uppercase characters in image reference hostname
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.
|
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.
letters.
TestTagInvalidUnprefixedRepo
Fixes: #20056
cc @dmcgowan @tonistiigi @tiborvass