Make native driver use Exec func with different CreateCommand
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
2afcf71b2c
commit
761fd72512
4 changed files with 19 additions and 5 deletions
10
libcontainer/nsinit/create.go
Normal file
10
libcontainer/nsinit/create.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package nsinit
|
||||
|
||||
import (
|
||||
"os"
|
||||
"os/exec"
|
||||
|
||||
"github.com/dotcloud/docker/pkg/libcontainer"
|
||||
)
|
||||
|
||||
type CreateCommand func(container *libcontainer.Container, console, rootfs, dataPath, init string, childPipe *os.File, args []string) *exec.Cmd
|
Loading…
Add table
Add a link
Reference in a new issue