feat(docker-new): enable lo multicast and DDS sysctl tuning at startup#7021
Merged
feat(docker-new): enable lo multicast and DDS sysctl tuning at startup#7021
Conversation
Apply the DDS network-tuning steps from the Autoware docs inside the container at entrypoint so they take effect in its own network namespace. Best-effort: silently skipped when the container lacks CAP_NET_ADMIN. Signed-off-by: Mete Fatih Cırıt <mfc@autoware.org>
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
mitsudome-r
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lo.net.core.rmem_max,net.ipv4.ipfrag_time,net.ipv4.ipfrag_high_thresh) at container startup.|| trueso containers withoutNET_ADMIN/--privilegedstill start cleanly.Why
The DDS tuning docs ask every user to apply these sysctls manually on the host, and loopback multicast is off by default on most distros. Doing it inside the entrypoint means the
docker-newimage works out of the box for single-host DDS without extra setup steps, while gracefully degrading when capabilities are missing.Test plan
docker buildx bake -f docker-new/docker-bake.hcl base):MULTICASTflag onloand values2147483647,3,134217728.entrypoint okwith no fatal errors from the sysctl /ip linkcalls.ros2 topic pub/ros2 topic echowithROS_LOCALHOST_ONLY=1).