Nodes have name // when started in docker container with --net=host
Steps to reproduce:
Start docker container for
ros:foxy
sudo docker run -it --rm --net=host --name=foxy_test ros:foxy
Install and run demo node
apt update && apt install -y ros-foxy-demo-nodes-cpp && source /opt/ros/foxy/setup.bash && ros2 run demo_nodes_cpp talker
Put
talker
in background (Ctrl-Z +bg
) and runros2 node list
Expected output:
/talker
Actual output:
//
Note ros2 topic echo /rosout
works as expected
Interesting. #q376812 reports something similar, but then with Micro-ROS involved.