<div dir="ltr">I am attempting to have multiple containers share the same IPC namespace for communication between containers. I start container A followed by attempting to start container B in the following manner:<div><br></div><div>lxc-start -n B --share-ipc A</div><div><br></div><div>This fails with the following:</div><div><br></div><div><div>      lxc-start 20170605184035.303 ERROR    lxc_start - start.c:attach_ns:191 - Invalid argument - failed to set namespace 'ipc'</div><div>      lxc-start 20170605184035.304 ERROR    lxc_start - start.c:__lxc_start:1329 - failed to spawn 'B'</div><div>      lxc-start 20170605184040.311 ERROR    lxc_start_ui - lxc_start.c:main:344 - The container failed to start.</div><div>      lxc-start 20170605184040.311 ERROR    lxc_start_ui - lxc_start.c:main:346 - To get more details, run the container in foreground mode.</div><div>      lxc-start 20170605184040.312 ERROR    lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.</div><div>      lxc-start 20170605184107.581 INFO     lxc_start_ui - lxc_start.c:main:264 - using rcfile /var/lib/lxc/B/config</div><div>      lxc-start 20170605184107.582 WARN     lxc_confile - confile.c:config_pivotdir:1877 - lxc.pivotdir is ignored.  It will soon become an error.</div><div>      lxc-start 20170605184107.582 INFO     lxc_confile - confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 100000 range 65536</div><div>      lxc-start 20170605184107.583 INFO     lxc_confile - confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 100000 range 65536</div><div>      lxc-start 20170605184107.584 WARN     lxc_confile - confile.c:config_pivotdir:1877 - lxc.pivotdir is ignored.  It will soon become an error.</div><div>      lxc-start 20170605184107.584 INFO     lxc_confile - confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 100000 range 65536</div><div>      lxc-start 20170605184107.584 INFO     lxc_confile - confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 100000 range 65536</div><div>      lxc-start 20170605184107.592 INFO     lxc_start - start.c:lxc_check_inherited:251 - closed inherited fd 4</div><div>      lxc-start 20170605184107.593 INFO     lxc_start - start.c:lxc_check_inherited:251 - closed inherited fd 5</div><div>      lxc-start 20170605184107.607 INFO     lxc_container - lxccontainer.c:do_lxcapi_start:797 - Attempting to set B title to [lxc monitor] /var/lib/lxc B</div><div>      lxc-start 20170605184107.612 INFO     lxc_start - start.c:lxc_check_inherited:251 - closed inherited fd 4</div><div>      lxc-start 20170605184107.615 DEBUG    lxc_start - start.c:setup_signal_fd:289 - sigchild handler set</div><div>      lxc-start 20170605184107.619 INFO     lxc_start - start.c:lxc_check_inherited:251 - closed inherited fd 4</div><div>      lxc-start 20170605184107.620 INFO     lxc_start - start.c:lxc_check_inherited:251 - closed inherited fd 5</div><div>      lxc-start 20170605184107.620 DEBUG    lxc_console - console.c:lxc_console_peer_default:473 - no console peer</div><div>      lxc-start 20170605184107.620 INFO     lxc_start - start.c:lxc_init:488 - 'B' is initialized</div><div>      lxc-start 20170605184107.624 DEBUG    lxc_start - start.c:__lxc_start:1302 - Not dropping cap_sys_boot or watching utmp</div><div>      lxc-start 20170605184107.624 INFO     lxc_start - start.c:resolve_clone_flags:999 - Cloning a new user namespace</div></div><div><div>      lxc-start 20170605184107.625 INFO     lxc_cgroup - cgroup.c:cgroup_init:68 - cgroup driver cgroupfs-ng initing for B</div><div>      lxc-start 20170605184107.632 INFO     lxc_monitor - monitor.c:lxc_monitor_sock_name:178 - using monitor sock name lxc/ad055575fe28ddd5//var/lib/lxc</div><div>      lxc-start 20170605184107.632 ERROR    lxc_start - start.c:attach_ns:191 - Invalid argument - failed to set namespace 'ipc'</div><div>      lxc-start 20170605184107.633 ERROR    lxc_start - start.c:__lxc_start:1329 - failed to spawn 'B'</div><div>      lxc-start 20170605184107.633 WARN     lxc_commands - commands.c:lxc_cmd_rsp_recv:172 - command get_cgroup failed to receive response</div><div>      lxc-start 20170605184112.639 ERROR    lxc_start_ui - lxc_start.c:main:344 - The container failed to start.</div><div>      lxc-start 20170605184112.639 ERROR    lxc_start_ui - lxc_start.c:main:346 - To get more details, run the container in foreground mode.</div><div>      lxc-start 20170605184112.639 ERROR    lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.</div><div><br></div><div>Any ideas?</div></div></div>