I expect that I can use the host's IPC using k3s and cri-dockerd.
This means that I can set hostIPC: true and the IpcMode of the resulting docker container is set as if you'd run a docker container manually with docker run --ipc=host ....
docker inspect ... should return "IpcMode": "host", in both cases.
Actual Behavior
With k3s and cri-dockerd, docker inspect ... returns "IpcMode": "container:e86cde4006dd4ebb82229db13e77b223e248b4969dc3738d58600971874ff372", even though I set hostIPC: true.
Steps to Reproduce the Problem
Installed K3s: curl -sfL https://get.k3s.io | sh -
Expected Behavior
I expect that I can use the host's IPC using k3s and cri-dockerd.
This means that I can set
hostIPC: true
and theIpcMode
of the resulting docker container is set as if you'd run a docker container manually withdocker run --ipc=host ...
.docker inspect ...
should return"IpcMode": "host",
in both cases.Actual Behavior
With k3s and cri-dockerd,
docker inspect ...
returns"IpcMode": "container:e86cde4006dd4ebb82229db13e77b223e248b4969dc3738d58600971874ff372",
even though I sethostIPC: true
.Steps to Reproduce the Problem
curl -sfL https://get.k3s.io | sh -
kubectl apply -f test-ipc-pod.yaml
docker inspect $(docker ps -q --filter "name=k8s_test-ipc") | grep IpcMode
Specifications