I would like to create a “group” of containers that all share a specific containers shared memory.
I have 1 process that writes to a specific section of shared memory (i.e. “/falcon” )in a docker container.
Docker image: dockersharedmemory/shmclient
I have another process that initially creates and reads the same section of shared memory(i.e. “/falcon” ) every second in another docker container.
Docker image: dockersharedmemory/shmserver
When I run the two containers using the following commands I am able to read and write in each container respectfully:
docker run -d -v /dev:/dev dockersharedmemory/shmserver
docker run -d -v /dev:/dev dockersharedmemory/shmclient
When I use the “–ipc” option per documentation i can’t get it to work:
docker run -d dockersharedmemory/shmserver
docker run -d --ipc=container:happy_fermi dockersharedmemory/shmclient
Client version: 1.4.1
Client API version: 1.16
Go version (client): go1.3.3
Git commit (client): 5bc2ff8/1.4.1
OS/Arch (client): linux/amd64
Server version: 1.4.1
Server API version: 1.16
Go version (server): go1.3.3
Git commit (server): 5bc2ff8/1.4.1