diff --git a/server/sandbox_run.go b/server/sandbox_run.go index 8020c252..72afdb22 100644 --- a/server/sandbox_run.go +++ b/server/sandbox_run.go @@ -83,10 +83,7 @@ func (s *Server) runContainer(container *oci.Container, cgroupParent string) err if err := s.Runtime().CreateContainer(container, cgroupParent); err != nil { return err } - if err := s.Runtime().StartContainer(container); err != nil { - return err - } - return nil + return s.Runtime().StartContainer(container) } var ( diff --git a/server/server.go b/server/server.go index 6aafd0c9..a308e7d2 100644 --- a/server/server.go +++ b/server/server.go @@ -204,7 +204,6 @@ func New(config *Config) (*Server, error) { s := &Server{ ContainerServer: containerServer, - netPlugin: netPlugin, hostportManager: hostportManager, config: *config,