Allow setting a one-off container name
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
bdec7e6b52
commit
d2718bed99
5 changed files with 32 additions and 1 deletions
|
|
@ -586,7 +586,7 @@ class Service(object):
|
|||
|
||||
if self.custom_container_name() and not one_off:
|
||||
container_options['name'] = self.custom_container_name()
|
||||
else:
|
||||
elif not container_options.get('name'):
|
||||
container_options['name'] = self.get_container_name(number, one_off)
|
||||
|
||||
if add_config_hash:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue