mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
Merge pull request #13583 from rhatdan/ipc
Add support for ipc namespace modes "none, private, sharable"
This commit is contained in:
@ -219,7 +219,7 @@ $ podman container inspect foobar
|
||||
"DnsSearch": [],
|
||||
"ExtraHosts": [],
|
||||
"GroupAdd": [],
|
||||
"IpcMode": "private",
|
||||
"IpcMode": "shareable",
|
||||
"Cgroup": "",
|
||||
"Cgroups": "default",
|
||||
"Links": null,
|
||||
|
@ -504,10 +504,16 @@ To specify multiple static IPv6 addresses per container, set multiple networks u
|
||||
|
||||
#### **--ipc**=*ipc*
|
||||
|
||||
Default is to create a private IPC namespace (POSIX SysV IPC) for the container
|
||||
`container:<name|id>`: reuses another container shared memory, semaphores and message queues
|
||||
`host`: use the host shared memory,semaphores and message queues inside the container. Note: the host mode gives the container full access to local shared memory and is therefore considered insecure.
|
||||
`ns:<path>` path to an IPC namespace to join.
|
||||
Set the IPC namespace mode for a container. The default is to create
|
||||
a private IPC namespace.
|
||||
|
||||
- "": Use Podman's default, defined in containers.conf.
|
||||
- **container:**_id_: reuses another container's shared memory, semaphores, and message queues
|
||||
- **host**: use the host's shared memory, semaphores, and message queues inside the container. Note: the host mode gives the container full access to local shared memory and is therefore considered insecure.
|
||||
- **none**: private IPC namespace, with /dev/shm not mounted.
|
||||
- **ns:**_path_: path to an IPC namespace to join.
|
||||
- **private**: private IPC namespace.
|
||||
= **shareable**: private IPC namespace with a possibility to share it with other containers.
|
||||
|
||||
#### **--label**, **-l**=*label*
|
||||
|
||||
|
@ -528,9 +528,13 @@ To specify multiple static IPv6 addresses per container, set multiple networks u
|
||||
Set the IPC namespace mode for a container. The default is to create
|
||||
a private IPC namespace.
|
||||
|
||||
- "": Use Podman's default, defined in containers.conf.
|
||||
- **container:**_id_: reuses another container shared memory, semaphores and message queues
|
||||
- **host**: use the host shared memory,semaphores and message queues inside the container. Note: the host mode gives the container full access to local shared memory and is therefore considered insecure.
|
||||
- **none**: private IPC namespace, with /dev/shm not mounted.
|
||||
- **ns:**_path_: path to an IPC namespace to join.
|
||||
- **private**: private IPC namespace.
|
||||
= **shareable**: private IPC namespace with a possibility to share it with other containers.
|
||||
|
||||
#### **--label**, **-l**=*key*=*value*
|
||||
|
||||
|
Reference in New Issue
Block a user