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

Can I change container name? #431

Closed
pahaz opened this issue Aug 22, 2014 · 4 comments
Closed

Can I change container name? #431

pahaz opened this issue Aug 22, 2014 · 4 comments

Comments

@pahaz
Copy link

pahaz commented Aug 22, 2014

I have two projects.
One /home/app1/source and /home/app2/source.

And both containers have same name source_web_1, and after fig up start only one of them.
How to fix it?

@dnephin
Copy link

dnephin commented Aug 22, 2014

See #45 for some discussion, for now there is a command line option -p

@kcmerrill
Copy link

+1 I'd love to see functionality to individually name containers. Unless I missed something in the documentation.

@thaJeztah
Copy link
Member

@kcmerrill unfortunately, at this stage, this is not possible. Fig relies on the projectname_servicename_xx convention to find which containers belong to a project. It's a "hack" and the maintainers are well aware of that. Work is in progress "upstream" in docker to add meta-data to containers, which will allow more flexible naming.

Having said that, I think the original question was answered and this issue can be closed, @dnephin ?

@dnephin
Copy link

dnephin commented Jan 5, 2015

Yup, you can use -p or FIG_PROJECT_NAME to set a project name.

#652 is the issue for explicit names, so I agree we can close.

@dnephin dnephin closed this as completed Jan 5, 2015
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

4 participants