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
Docket Network Naming Requirement Inconsistent with Error Message #31772
Comments
/cc @aboch |
This is because the swarmkit validation of annotations' names. But given the validation function is run on the annotations of all top objects, this rule gets enforced for swarm networks as well. |
@aboch , sure. However, the error message is probably misleading: "name must be valid as a DNS name component" as a.b.c, a.b.com, etc. would seem to be perfectly valid DNS name |
@patran Regarding the error message, the rationale behind it, I would let @dperny comment. |
It's not accidental, Swarm enforces DNS name validation. Dots are reserved for swarmkit, e.g., in the future we might have |
The confusion here is probably in the component part of the error message. |
I would prefer no restriction, but I am ok with the naming restriction. Especially, I think the documentation needs to be updated to be crystal clear about what naming convention to avoid so as not to conflict with future internal docker stuff. I can image the fun of tracing those conflicts at 2:00am :) @thaJeztah varies wildly these days. The number of tld keeps on increasing too. I would suggest either allow dots in the names or disallow and make the documentation and error messages plainly clear to the effect |
Description
Cannot create a network with a name that contains "."
Steps to reproduce the issue:
Describe the results you received:
Error response from daemon: rpc error: code = 3 desc = name must be valid as a DNS name component
Describe the results you expected:
Expected for the network to be created. As it turns out, the name cannot contain "." is that a requirement?
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
uname -a
Linux aulac-1-0 4.4.0-66-generic #87-Ubuntu SMP Fri Mar 3 15:29:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Baremetal physical servers
The text was updated successfully, but these errors were encountered: