docker inspect reports HostConfig.IpcMode as empty on 0.3.0; --ipc silently ignored
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libracoder/kiri
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
libracoder/kiri#1138 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
libracoder/kiri#1143 ·
Maintainers usually reply within 1 day
-
VM can go to sleep as idle during a long /containers/create (first run of a large image): "the VM stopped"Possibly taken @takealook97 claimed this today. Open
Difficulty 3/5 1-2 days Newbie friendliness 30/100
libracoder/kiri#1140 ·
Maintainers usually reply within 1 day
-
Windows: `kiri storage reclaim` does nothing and reports "Native Linux"Possibly taken @takealook97 claimed this today. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
libracoder/kiri#1139 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 58/100
libracoder/kiri#1137 ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
foundry-rs/starknet-foundry#4733 ·
Maintainers usually reply within 4 days
-
autofix:working
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
roc-lang/basic-webserver#277 ·
Maintainers usually reply within 1 day