• Kir Kolyshkin's avatar
    Use shareable IPC for sandbox container · 1dca64ff
    Kir Kolyshkin authored
    Currently, Docker make IPC of every container shareable by default,
    which means other containers can join it's IPC namespace. This is
    implemented by creating a tmpfs mount on the host, and then
    bind-mounting it to a container's /dev/shm. Other containers
    that want to share the same IPC (and the same /dev/shm) can also
    bind-mount the very same host's mount.
    
    Now, since https://github.com/moby/moby/commit/7120976d7
    (https://github.com/moby/moby/pull/34087) there is a possiblity
    to have per-daemon default of having "private" IPC mode,
    meaning all the containers created will have non-shareable
    /dev/shm.
    
    For shared IPC to work in the above scenario, we need to
    explicitly make the "pause" container's IPC mode as "shareable",
    which is what this commit does.
    
    To test: add "default-ipc-mode: private" to /etc/docker/daemon.json,
    try using kube as usual, there should be no errors.
    Signed-off-by: 's avatarKir Kolyshkin <kolyshkin@gmail.com>
    1dca64ff
Name
Last commit
Last update
..
cm Loading commit data...
libdocker Loading commit data...
metrics Loading commit data...
network Loading commit data...
remote Loading commit data...
BUILD Loading commit data...
convert.go Loading commit data...
convert_test.go Loading commit data...
doc.go Loading commit data...
docker_checkpoint.go Loading commit data...
docker_checkpoint_test.go Loading commit data...
docker_container.go Loading commit data...
docker_container_test.go Loading commit data...
docker_image.go Loading commit data...
docker_image_linux.go Loading commit data...
docker_image_test.go Loading commit data...
docker_image_unsupported.go Loading commit data...
docker_image_windows.go Loading commit data...
docker_legacy_service.go Loading commit data...
docker_logs.go Loading commit data...
docker_sandbox.go Loading commit data...
docker_sandbox_test.go Loading commit data...
docker_service.go Loading commit data...
docker_service_test.go Loading commit data...
docker_stats_linux.go Loading commit data...
docker_stats_unsupported.go Loading commit data...
docker_stats_windows.go Loading commit data...
docker_streaming.go Loading commit data...
exec.go Loading commit data...
helpers.go Loading commit data...
helpers_linux.go Loading commit data...
helpers_linux_test.go Loading commit data...
helpers_test.go Loading commit data...
helpers_unsupported.go Loading commit data...
helpers_windows.go Loading commit data...
naming.go Loading commit data...
naming_test.go Loading commit data...
security_context.go Loading commit data...
security_context_test.go Loading commit data...
selinux_util.go Loading commit data...
selinux_util_test.go Loading commit data...