Connect services to networks with the 'networks' key
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
3f9038aea9
commit
3eafdbb01b
12 changed files with 195 additions and 78 deletions
|
|
@ -704,7 +704,7 @@ def run_one_off_container(container_options, project, service, options):
|
|||
**container_options)
|
||||
|
||||
if options['-d']:
|
||||
container.start()
|
||||
service.start_container(container)
|
||||
print(container.name)
|
||||
return
|
||||
|
||||
|
|
@ -716,6 +716,7 @@ def run_one_off_container(container_options, project, service, options):
|
|||
try:
|
||||
try:
|
||||
dockerpty.start(project.client, container.id, interactive=not options['-T'])
|
||||
service.connect_container_to_networks(container)
|
||||
exit_code = container.wait()
|
||||
except signals.ShutdownException:
|
||||
project.client.stop(container.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue