From 56274749c81026e25fb56fce37c2d14716a79351 Mon Sep 17 00:00:00 2001 From: Zhang Tianyang Date: Fri, 17 Feb 2023 17:14:03 +0800 Subject: [PATCH] sandbox: start sandbox with options Signed-off-by: Zhang Tianyang --- services/sandbox/controller_service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/sandbox/controller_service.go b/services/sandbox/controller_service.go index 10a39fd2a..5fc9ae0d1 100644 --- a/services/sandbox/controller_service.go +++ b/services/sandbox/controller_service.go @@ -63,8 +63,8 @@ func (s *controllerService) Register(server *grpc.Server) error { func (s *controllerService) Create(ctx context.Context, req *api.ControllerCreateRequest) (*api.ControllerCreateResponse, error) { log.G(ctx).WithField("req", req).Debug("create sandbox") - // TODO: Rootfs, any - err := s.local.Create(ctx, req.GetSandboxID()) + // TODO: Rootfs + err := s.local.Create(ctx, req.GetSandboxID(), sandbox.WithOptions(req.GetOptions())) if err != nil { return &api.ControllerCreateResponse{}, errdefs.ToGRPC(err) }