Procházet zdrojové kódy

[cli] run --rm overrides restart: always

docker/compose#1013

Signed-off-by: Joseph Page <[email protected]>
Joseph Page před 11 roky
rodič
revize
0b89ae6f20
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      compose/cli/main.py

+ 3 - 0
compose/cli/main.py

@@ -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')