mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #70826 from kolyshkin/shareable-ipc-sandbox
Use shareable IPC for sandbox container
This commit is contained in:
commit
e76322eab4
@ -593,7 +593,9 @@ func (ds *dockerService) makeSandboxDockerConfig(c *runtimeapi.PodSandboxConfig,
|
|||||||
// TODO(random-liu): Deprecate this label once container metrics is directly got from CRI.
|
// TODO(random-liu): Deprecate this label once container metrics is directly got from CRI.
|
||||||
labels[types.KubernetesContainerNameLabel] = sandboxContainerName
|
labels[types.KubernetesContainerNameLabel] = sandboxContainerName
|
||||||
|
|
||||||
hc := &dockercontainer.HostConfig{}
|
hc := &dockercontainer.HostConfig{
|
||||||
|
IpcMode: dockercontainer.IpcMode("shareable"),
|
||||||
|
}
|
||||||
createConfig := &dockertypes.ContainerCreateConfig{
|
createConfig := &dockertypes.ContainerCreateConfig{
|
||||||
Name: makeSandboxName(c),
|
Name: makeSandboxName(c),
|
||||||
Config: &dockercontainer.Config{
|
Config: &dockercontainer.Config{
|
||||||
|
Loading…
Reference in New Issue
Block a user