-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Support for uppercase or underscores or any separator in container names #941
Comments
The "Invalid repository name" error is coming from dockerd, not fig. see #655 , moby/moby@aabba98 fig/compose should be able to support other characters once docker has support for labels moby/moby#9882 |
Thank you for your quick answer ! Good thing if it's going to be implemented soon ! Should I leave the issue open ? |
Happy to inform that support for labels (moby/moby#9882) was merged and will be included in the upcoming 1.6 release of Docker. Also, I think there are currently a number of related issues in this area (#652, #869, #941 among others); perhaps the discussion should be focussed on the global proposal #1066 (but that's just a suggestion) |
Oh, nice thing, thank you. Waiting for the |
Well, it still depends on changes in compose itself, but the path is now clear to start working on that. |
Closing in favour of #1519 |
I saw 1 or 2 issues talking about supporting dashes or dots in container names and some arguments why it cannot be done for now but I found nothing about uppercase or underscores.
In fact, the problem in which I often find myself stuck is that I cannot separate different words in a single container name (in the
fig.yml
). Perhaps I'm mistaking or I didn't find the right convention to name my containers but I'm currently forced to use names likemysqldatacontainer
when I would like to call them more likemysqlDataContainer
or evenmysql_data_container
.If I use some uppercase, I end up with this error:
and this one if I use a
_
or a-
:That's why I'm proposing to allow at least one more character or to allow the uppercase in order to make long names more readable (if I didn't miss any way of doing it). We could even use it later as a coding convention.
What do you guys think about that ?
The text was updated successfully, but these errors were encountered: