Add stderr log ouput if in debug
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
f7eec3dd13
commit
9183242a5d
3 changed files with 4 additions and 3 deletions
|
@ -24,6 +24,7 @@ func (ns *linuxNs) Init(container *libcontainer.Container, uncleanRootfs, consol
|
|||
}
|
||||
|
||||
// We always read this as it is a way to sync with the parent as well
|
||||
ns.logger.Printf("reading from sync pipe fd %d\n", syncPipe.child.Fd())
|
||||
context, err := syncPipe.ReadFromParent()
|
||||
if err != nil {
|
||||
syncPipe.Close()
|
||||
|
@ -68,7 +69,7 @@ func (ns *linuxNs) Init(container *libcontainer.Container, uncleanRootfs, consol
|
|||
}
|
||||
|
||||
if profile := container.Context["apparmor_profile"]; profile != "" {
|
||||
ns.logger.Printf("setting apparmor prifile %s\n", profile)
|
||||
ns.logger.Printf("setting apparmor profile %s\n", profile)
|
||||
if err := apparmor.ApplyProfile(os.Getpid(), profile); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue