-
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
docker container names #342
Comments
Yeah, have a look at #37 - we should be adding a link alias without a numeric suffix. |
ok, but I don't think there's any problem with env vars, in any case that's for |
The problem if you name the web container just 'web' in docker, is that you are then limited to running one project at a time. If you have two projects that both have a service 'web' (which is extremely likely in a company that develops microservice like where I work), they will clash. You at least do need to prefix the project name, but you don't need the |
exactly, you can start adding numbers for 2, 3 and 4, but the vast majority of use cases you only use 1, so I would make it simple for them. |
Agreed. PR welcomed |
cool, just sent #349 to solve this |
Hi, I noticed that container names created by fig always have a number on their name:
I suppose the reason is there could be multiple containers running the same image (database), but that seems to violate the "principle of least suprise" to me, I wonder if could prevent this by making 1st container not be numbered, as that's the case for most people.
In other words change
database_1
to justdatabase
, and add numbers for 2,3,4 to the rest if there's any.I think that would help newcomers (like me) thoughts?
The text was updated successfully, but these errors were encountered: