docker inspect reports HostConfig.IpcMode as empty on 0.3.0; --ipc silently ignored

Open
#1,136 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
docker, rust
Domain
backend

Research direction

Start by tracing how Kiri builds container HostConfig fields and compare IpcMode handling with the CgroupnsMode behavior described in the report. Check the existing tests for Docker inspect defaults and invalid modes; done means inspect reports "private" by default, preserves supported explicit modes, and rejects the unsupported modes described in the issue.

Written by the indexing model from the issue text.

Description

Kiri version: 0.3.0 (kiri-win on Windows 11, engine in the kiri WSL2 distro; docker context kiri, Docker CLI 29.9.2, engine 27.5.1)

On Kiri 0.3.0, --ipc is silently ignored and docker inspect reports an empty HostConfig.IpcMode, instead of the Docker default "private":

$ docker run -d --name t --ipc private alpine sleep 60
<starts fine>
$ docker inspect --format '{{.HostConfig.IpcMode}}' t
<empty string>

--ipc host and --ipc host-style sharing modes are also accepted silently (exit 0) rather than refused.

By contrast, --cgroupns is handled correctly on 0.3.0: docker inspect reports HostConfig.CgroupnsMode as "private" by default, keeps explicit values, and refuses invalid modes with a 400 error.

Impact: Docker API clients that validate HostConfig security fields break. Concretely, OpenMausBot 0.1.190's Local VM readiness check requires HostConfig.IpcMode === "private" (its "hardened" validation) and now rejects every container with The existing Local VM is missing safety limits; recreate it, so its sandboxed private desktop cannot start against Kiri.

Suggestion: keep IpcMode in HostConfig the way 0.3.0 already keeps CgroupnsMode: report "private" by default (the guest already gives every container its own IPC namespace), keep explicit private/shareable as given, and refuse host/container:<id>/none with an error instead of silently ignoring them.

Happy to provide more details or test a fix. Thanks for Kiri — the 0.3.0 cgroupns/labels/ports reporting improvements made several other OpenMausBot checks pass unpatched.

Dominant language
Rust
Stars
7.5k
Forks
329
Avg merge
8h 54m
Merged PRs (30d)
426

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from libracoder/kiri

All issues in libracoder/kiri

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.