Log output of docker/distribution registries instead of sending it to /dev/null

This is useful for diagnosing failures which are logged locally but not
reported to the clients.
This commit is contained in:
Miloslav Trmač
2017-05-05 23:30:04 +02:00
parent 50dda3492c
commit 4afafe9538

View File

@@ -109,6 +109,7 @@ http:
}
cmd := exec.Command(binary, confPath)
consumeAndLogOutputs(c, fmt.Sprintf("registry-%s", url), cmd)
if err := cmd.Start(); err != nil {
os.RemoveAll(tmp)
if os.IsNotExist(err) {