RI-SE / ATOS

ROS2 based platform for coordinating tests of automated vehicles and their surrounding systems.
Mozilla Public License 2.0
13 stars 5 forks source link

Unable to access localhost:8080 using Docker Desktop #640

Open johanivaz opened 5 months ago

johanivaz commented 5 months ago

Describe the bug Unable to access localhost:8080 in web browser when the running Docker Desktop.

To Reproduce Steps to reproduce the behavior:

  1. Go to atos directory and run "docker compose up"
  2. Open http://localhost:8080/ in your browser
  3. See error

Possible Solution Update docker-compose.yml with:

network_mode: bridge ports:

under foxglove-studio:

Desktop (please complete the following information):

Robert108 commented 5 months ago

I created a WIP PR to change the network stack to use bridge mode https://github.com/RI-SE/ATOS/pull/641, which should work better with users using docker desktop. Unfortunately i was unable to connect to a local IsoObject with this config. I changed the VehicleConfig to try to connect to an object running on a machine with local docker0 interface ip of 172.17.0.1/16 (ATOS is running on 172.17.0.3/16).

Robert108 commented 4 months ago

Never mind, this work as long as you use the correct docker network interface.