--whitelist-environment=\"ROS_DOMAIN_ID\" to take the ROS_DOMAIN_ID from the root shell into the ros users shell so ROS nodes started by the ros user will start them in the right domain.
echo uid and rosdomainid for better understanding
Removes duplicat of --uid definition in ros_entrypoint.sh
UID can be explicitly set to a custom environment variable MY_UID, in case the shell does not export UID automatically (which would result in trying to assign ID 0 to the 'ros' user in ros_entrypoint.sh)
--whitelist-environment=\"ROS_DOMAIN_ID\" to take the ROS_DOMAIN_ID from the root shell into the ros users shell so ROS nodes started by the ros user will start them in the right domain.
echo uid and rosdomainid for better understanding
Removes duplicat of --uid definition in ros_entrypoint.sh