Add devices to OCI config
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
f7e5e24a05
commit
23cf1a6fdb
1 changed files with 4 additions and 1 deletions
|
@ -87,7 +87,6 @@ func addDevices(sb *sandbox, containerConfig *pb.ContainerConfig, specgen *gener
|
||||||
Minor: &dev.Minor,
|
Minor: &dev.Minor,
|
||||||
Access: dev.Permissions,
|
Access: dev.Permissions,
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -333,6 +332,10 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string,
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := addDevices(sb, containerConfig, &specgen); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
labels := containerConfig.GetLabels()
|
labels := containerConfig.GetLabels()
|
||||||
|
|
||||||
metadata := containerConfig.GetMetadata()
|
metadata := containerConfig.GetMetadata()
|
||||||
|
|
Loading…
Reference in a new issue