|
|
@@ -258,10 +258,11 @@ class TopLevelCommand(Command):
|
|
|
Options:
|
|
|
-d Detached mode: Run container in the background, print
|
|
|
new container name.
|
|
|
+ --entrypoint Override the entrypoint of the image.
|
|
|
+ --no-deps Don't start linked services.
|
|
|
+ --rm Remove container after run. Ignored in detached mode.
|
|
|
-T Disable pseudo-tty allocation. By default `fig run`
|
|
|
allocates a TTY.
|
|
|
- --rm Remove container after run. Ignored in detached mode.
|
|
|
- --no-deps Don't start linked services.
|
|
|
"""
|
|
|
service = project.get_service(options['SERVICE'])
|
|
|
|
|
|
@@ -289,6 +290,10 @@ class TopLevelCommand(Command):
|
|
|
'tty': tty,
|
|
|
'stdin_open': not options['-d'],
|
|
|
}
|
|
|
+
|
|
|
+ if options['--entrypoint']:
|
|
|
+ container_options['entrypoint'] = options.get('--entrypoint')
|
|
|
+
|
|
|
container = service.create_container(one_off=True, **container_options)
|
|
|
if options['-d']:
|
|
|
service.start_container(container, ports=None, one_off=True)
|