mirror of
https://github.com/docker/compose.git
synced 2025-07-29 16:44:20 +02:00
[cli] run --rm overrides restart: always
docker/compose#1013 Signed-off-by: Joseph Page <joseph.page@rednet.io>
This commit is contained in:
parent
9d7b54d8fd
commit
0b89ae6f20
@ -325,6 +325,9 @@ class TopLevelCommand(Command):
|
||||
if options['--entrypoint']:
|
||||
container_options['entrypoint'] = options.get('--entrypoint')
|
||||
|
||||
if options['--rm']:
|
||||
container_options['restart'] = None
|
||||
|
||||
if options['--user']:
|
||||
container_options['user'] = options.get('--user')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user