Browse Source

Show output from stderr when running in stand-alone mode

master
Ricardo Branco 6 years ago
parent
commit
5ad4fb330c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      clean_registry.py

+ 1
- 1
clean_registry.py View File

@@ -245,7 +245,7 @@ class RegistryCleaner():
245 245
                     print(proc.stdout.read().decode('utf-8'))
246 246
             status = proc.wait()
247 247
         else:
248
-            cli = self.docker.containers.run("registry:2", command=command, detach=True,
248
+            cli = self.docker.containers.run("registry:2", command=command, detach=True, stderr=True,
249 249
                                              volumes={self.registry_dir: {'bind': "/var/lib/registry", 'mode': "rw"}})
250 250
             if not args.quiet:
251 251
                 for line in cli.logs(stream=True):

Loading…
Cancel
Save