-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Proposal: Make it possible to use "_" in container name #799
Comments
PS. |
Hmm. I see the argument, but I'm wary of making the logic more complicated - it's already an ugly hack. Once Docker has queryable container metadata (moby/moby#9882), we can relax naming rules a lot more without fear of breaking stuff. |
Sounds like a plan, thanks for your answer |
See #1519 |
Hi,
Is it possible to allow some word separator in service names? For example I have a service, it's database and database volume containers. These services have names:
service
,servicedatabase
andservicedatabasedata
. You can easily identify thatservicedatabase
belongs toservice
, as it has prefix. But because neither '_' nor '-' are allowed these names are super hard to read quickly. So, it will be great if you will allow underscores, so my containers will become:service
,service_database
andservice_database_data
If underscores will be allowed you still will be able to split joined name back to project-name, service-name and instance-number. You can forbid underscore in project name and last part is always an integer, so to split it back you need to cut part before first
_
and after last_
, these will be project name and instance number the rest is service name.Thanks a lot!
The text was updated successfully, but these errors were encountered: