@@ -34,7 +34,7 @@ var empty = &ptypes.Empty{}
3434type Opt func (context.Context , shim.Config ) (shimapi.ShimService , io.Closer , error )
3535
3636// WithStart executes a new shim process
37- func WithStart (binary , address , daemonAddress , cgroup string , nonewns , debug bool , exitHandler func ()) Opt {
37+ func WithStart (binary , address , daemonAddress , cgroup string , debug bool , exitHandler func ()) Opt {
3838 return func (ctx context.Context , config shim.Config ) (_ shimapi.ShimService , _ io.Closer , err error ) {
3939 socket , err := newSocket (address )
4040 if err != nil {
@@ -47,7 +47,7 @@ func WithStart(binary, address, daemonAddress, cgroup string, nonewns, debug boo
4747 }
4848 defer f .Close ()
4949
50- cmd := newCommand (binary , daemonAddress , nonewns , debug , config , f )
50+ cmd := newCommand (binary , daemonAddress , debug , config , f )
5151 ec , err := reaper .Default .Start (cmd )
5252 if err != nil {
5353 return nil , nil , errors .Wrapf (err , "failed to start shim" )
@@ -87,7 +87,7 @@ func WithStart(binary, address, daemonAddress, cgroup string, nonewns, debug boo
8787 }
8888}
8989
90- func newCommand (binary , daemonAddress string , nonewns , debug bool , config shim.Config , socket * os.File ) * exec.Cmd {
90+ func newCommand (binary , daemonAddress string , debug bool , config shim.Config , socket * os.File ) * exec.Cmd {
9191 selfExe , err := os .Executable ()
9292 if err != nil {
9393 panic (err )
@@ -117,7 +117,7 @@ func newCommand(binary, daemonAddress string, nonewns, debug bool, config shim.C
117117 // make sure the shim can be re-parented to system init
118118 // and is cloned in a new mount namespace because the overlay/filesystems
119119 // will be mounted by the shim
120- cmd .SysProcAttr = getSysProcAttr (nonewns )
120+ cmd .SysProcAttr = getSysProcAttr ()
121121 cmd .ExtraFiles = append (cmd .ExtraFiles , socket )
122122 if debug {
123123 cmd .Stdout = os .Stdout
0 commit comments