ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I missed to configure the docker subnet configuration
ipam_pool = docker.types.IPAMPool(subnet='X.X.X.0/24')
ipam_config = docker.types.IPAMConfig(pool_configs=[ipam_pool])
dn = dc.networks.create(name='some_test', driver="bridge", ipam=ipam_config)
and a specific ip for the container
some_node = dc.containers.run(image=di[0].id, environment=["ROS_IP=<some-ip-in-the-dev-machine-subnet>", "ROS_MASTER_URI=http://<dev-machine-ip>:11311"], name='<some-node>', command=rosrun_command, detach=True, tty=True)
dn.connect(rc_itempick, ipv4_address='<some-ip-in-the-dev-machine-subnet>')
Have to do additional checks but seems to work now...