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

Allow setting a one-off container name #1930

Merged
merged 2 commits into from
Aug 26, 2015

Conversation

dnephin
Copy link

@dnephin dnephin commented Aug 26, 2015

In #1755 we removed the custom name from one-off containers, which left them with the default name.

This adds a --name param to docker-compose run to name the container

@@ -99,14 +99,12 @@ def test_get_volumes_from_service_no_container(self):

def test_split_domainname_none(self):
service = Service('foo', image='foo', hostname='name', client=self.mock_client)
self.mock_client.containers.return_value = []
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These mock return values haven't been necessary for a while, since we refactored _get_container_create_options() to not make any api calls.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Sorry to be picky, but would you mind doing this cleanup (and the __ -> _ changes) in a separate commit?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I can do that

…ndard single underscore for unused variable

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
@dnephin dnephin force-pushed the name_one_off_containers branch from 95b6227 to d2718be Compare August 26, 2015 17:33
@dnephin
Copy link
Author

dnephin commented Aug 26, 2015

Split into 2 commits, cleanup then actual feature

@aanand
Copy link

aanand commented Aug 26, 2015

LGTM

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

Successfully merging this pull request may close these issues.

3 participants