diff --git a/fig/service.py b/fig/service.py index 730e3a1c9..a60bf23f2 100644 --- a/fig/service.py +++ b/fig/service.py @@ -141,14 +141,13 @@ class Service(object): if container.is_running: container.stop(timeout=1) - intermediate_container_options = { - 'image': container.image, - 'command': 'echo', - 'volumes_from': container.id, - 'entrypoint': None - } - intermediate_container = self.create_container( - one_off=True, **intermediate_container_options) + intermediate_container = Container.create( + self.client, + image=container.image, + command='echo', + volumes_from=container.id, + entrypoint=None + ) intermediate_container.start() intermediate_container.wait() container.remove()