Update to enable cross compile
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael) Upstream-commit: 83982e8b1d0cd825e1762b5540db8ae77c34f065 Component: engine
This commit is contained in:
@@ -84,7 +84,6 @@ func Init(container *libcontainer.Container, uncleanRootfs, consolePath string,
|
||||
if err := label.SetProcessLabel(container.Context["process_label"]); err != nil {
|
||||
return fmt.Errorf("set process label %s", err)
|
||||
}
|
||||
|
||||
if err := FinalizeNamespace(container); err != nil {
|
||||
return fmt.Errorf("finalize namespace %s", err)
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// +build linux
|
||||
|
||||
package restrict
|
||||
|
||||
import (
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// +build !linux
|
||||
|
||||
package restrict
|
||||
|
||||
import "fmt"
|
||||
|
||||
func Restrict(rootfs, empty string) error {
|
||||
return fmt.Errorf("not supported")
|
||||
}
|
||||
Reference in New Issue
Block a user