Skip to content

Add support for ipc option in services element#1452

Open
wiehe wants to merge 3 commits into
containers:mainfrom
wiehe:ipc
Open

Add support for ipc option in services element#1452
wiehe wants to merge 3 commits into
containers:mainfrom
wiehe:ipc

Conversation

@wiehe
Copy link
Copy Markdown
Contributor

@wiehe wiehe commented May 8, 2026

Hello,

I propose the following patch, which takes the ipc option from a services element in the composefile and passes it to podman as an --ipc option.

Motivation

What does work

Passing IPC options to podman run/podman create.

All modes specified by podman create/podman run and docker compose are supported.

  • ""
  • container:<name>
  • host
  • none
  • ns:<path>
  • private
  • shareable
  • service:<name> (gets translated to container:<id>)

What does not work

Setting the IPC mode for RUN instructions when executing podman build.

That would require a different ipc option, which would be located in the build element. But such an option does not exist in the compose specification.

wiehe added 3 commits May 8, 2026 18:39
Improve tests:
- 1 new test case
- additional checks for existing test cases

Signed-off-by: wiehe <28457227+wiehe@users.noreply.github.com>
Print nicer error message if the service name in "ipc: service:name" is invalid. (Instead of just
throwing a KeyError.)

Signed-off-by: wiehe <28457227+wiehe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shared IPC doesn't seem to be working when using podman compose services do not support ipc

1 participant