-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
binding host PID and IPC namespace to devcontainer.json. #4654
Conversation
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
HTML artifacts: https://github.com/ros2/ros2_documentation/actions/runs/10479375339/artifacts/1834612073. To view the resulting site:
|
@@ -138,6 +138,8 @@ Therefore add the following to ``.devcontainer/devcontainer.json``: | |||
}, | |||
"runArgs": [ | |||
"--net=host", | |||
"--pid=host", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is related to https://answers.ros.org/question/296828/ros2-connectivity-across-docker-containers-via-host-driver/. having the same PID namespace can generate the GUID if DDS implementation uses the PID for GUID.
@@ -138,6 +138,8 @@ Therefore add the following to ``.devcontainer/devcontainer.json``: | |||
}, | |||
"runArgs": [ | |||
"--net=host", | |||
"--pid=host", | |||
"--ipc=host", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is suggested by Fast-DDS, https://fast-dds.docs.eprosima.com/en/latest/docker/shm_docker.html. Having the same IPC namespace can allow applications in containers and host system to communicated via shared memory transport.
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com> (cherry picked from commit 1d8b5f1)
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com> (cherry picked from commit 1d8b5f1)
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com> (cherry picked from commit 1d8b5f1)
No description provided.