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

Proposal: Make it possible to use "_" in container name #799

Closed
skolodyazhnyy opened this issue Jan 5, 2015 · 4 comments
Closed

Proposal: Make it possible to use "_" in container name #799

skolodyazhnyy opened this issue Jan 5, 2015 · 4 comments

Comments

@skolodyazhnyy
Copy link

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 and servicedatabasedata. You can easily identify that servicedatabase belongs to service, 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 and service_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!

@skolodyazhnyy
Copy link
Author

PS. myproject_serviceDatabaseData_1 looks extremely ugly, it should be either snake_case or camelCase, but not both at the same time.

@aanand
Copy link

aanand commented Jan 5, 2015

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.

@skolodyazhnyy
Copy link
Author

Sounds like a plan, thanks for your answer

@aanand
Copy link

aanand commented Jun 5, 2015

See #1519

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

No branches or pull requests

3 participants