Skip to content

Commit 94e15a9

Browse files
committed
Fix one-off containers not linking to service
Closes #185. Need to test this more thoroughly. We need a docker-py mock.
1 parent 5061875 commit 94e15a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fig/cli/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,11 @@ def run(self, options):
227227
}
228228
container = service.create_container(one_off=True, **container_options)
229229
if options['-d']:
230-
service.start_container(container, ports=None)
230+
service.start_container(container, ports=None, one_off=True)
231231
print(container.name)
232232
else:
233233
with self._attach_to_container(container.id, raw=tty) as c:
234-
service.start_container(container, ports=None)
234+
service.start_container(container, ports=None, one_off=True)
235235
c.run()
236236
if options['--rm']:
237237
container.wait()

0 commit comments

Comments
 (0)