Handle start errors sync with runc

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2016-03-11 10:11:42 -08:00
parent 22dac6af92
commit b68bc651a8
3 changed files with 47 additions and 5 deletions

View file

@ -12,15 +12,12 @@ import (
"github.com/docker/docker/pkg/term"
)
var runtimeLog string
func setupLogger() {
f, err := os.OpenFile("/tmp/shim.log", os.O_CREATE|os.O_RDWR|os.O_APPEND, 0755)
if err != nil {
panic(err)
}
logrus.SetOutput(f)
runtimeLog = "/tmp/runtime.log"
}
// containerd-shim is a small shim that sits in front of a runtime implementation