diff --git a/libcontainer/factory_linux.go b/libcontainer/factory_linux.go index cc336c14..6e2bf3ad 100644 --- a/libcontainer/factory_linux.go +++ b/libcontainer/factory_linux.go @@ -256,11 +256,13 @@ func (l *LinuxFactory) StartInitialization() (err error) { if _, ok := i.(*linuxStandardInit); ok { // Synchronisation only necessary for standard init. if werr := utils.WriteJSON(pipe, syncT{procError}); werr != nil { - panic(err) + fmt.Fprintln(os.Stderr, err) + return } } if werr := utils.WriteJSON(pipe, newSystemError(err)); werr != nil { - panic(err) + fmt.Fprintln(os.Stderr, err) + return } // ensure that this pipe is always closed pipe.Close()