mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-24 15:27:41 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user