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
                     print(proc.stdout.read().decode('utf-8'))
245
                     print(proc.stdout.read().decode('utf-8'))
246
             status = proc.wait()
246
             status = proc.wait()
247
         else:
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
                                              volumes={self.registry_dir: {'bind': "/var/lib/registry", 'mode': "rw"}})
249
                                              volumes={self.registry_dir: {'bind': "/var/lib/registry", 'mode': "rw"}})
250
             if not args.quiet:
250
             if not args.quiet:
251
                 for line in cli.logs(stream=True):
251
                 for line in cli.logs(stream=True):

Loading…
Cancel
Save