diff --git a/server/container_create.go b/server/container_create.go index e240c7ef..3b7ce7e8 100644 --- a/server/container_create.go +++ b/server/container_create.go @@ -87,7 +87,6 @@ func addDevices(sb *sandbox, containerConfig *pb.ContainerConfig, specgen *gener Minor: &dev.Minor, Access: dev.Permissions, }) - } return nil } @@ -333,6 +332,10 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string, return nil, err } + if err := addDevices(sb, containerConfig, &specgen); err != nil { + return nil, err + } + labels := containerConfig.GetLabels() metadata := containerConfig.GetMetadata()