docs(docs): update Docker command used for local simulation (#27531)

Co-authored-by: Wael Karman <wael.karman@agile-robots.com>
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
This commit is contained in:
Wael Karman
2026-06-04 08:53:39 +02:00
committed by GitHub
parent 4567296d3d
commit ed45e42591

View File

@@ -10,6 +10,16 @@ docker run --rm -it -p 14550:14550/udp px4io/px4-sitl:latest
That's it — open [QGroundControl](https://qgroundcontrol.com) and fly!
::: details Trouble connecting to QGC?
This command is recommended for Linux and can also be used on Windows (with recent docker/WSL2).
It uses a different mechanism for connecting to the host ports, and will often work in rare cases where the other command does not.
```sh
docker run --rm -it --network host px4io/px4-sitl:latest
```
:::
::: tip
To try [other vehicle types](../sim_sih/#supported-vehicle-types), use the `-e` flag to pass the `PX4_SIM_MODEL` environment variable to the `docker run` command: