# Install stretch\_ros in Docker

**URL:** <https://forum.hello-robot.com/t/install-stretch-ros-in-docker/1442>\
**Category:** Ask\
**Created:** [January 28, 2026, 11:54pm UTC](https://forum.hello-robot.com/t/install-stretch-ros-in-docker/1442 "2026-01-28T23:54:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jinyao\_Zhou](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/jinyao_zhou/32/1081_2.png) [@Jinyao\_Zhou](https://forum.hello-robot.com/u/Jinyao_Zhou)\
**Post date:** [January 28, 2026, 11:54pm UTC](https://forum.hello-robot.com/t/install-stretch-ros-in-docker/1442/1 "2026-01-28T23:54:59Z")

</div>

Hey team! I’m wondering if you have an existing docker image with necessary libraries especially stretch\_ros built in? I’m trying to install it in a ubuntu 22.04 ros2 humble image, following this instruction: [Updating your ROS Workspace - Stretch Docs](https://docs.hello-robot.com/0.3/installation/ros_workspace/) . However, I saw a lot of weird errors and after spending \>1 hour trying to solve some of the error, it still not working and shows something like this:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/hello_robot2/original/2X/1/1a73abb81a1b81191e5b1768e6e6c0b960eb8783.png)

I also tried to install following this [Simulation Tutorial - Stretch Docs](https://docs.hello-robot.com/0.3/ros2/stretch_simulation/) , but got stuck when I run the last step: (where I have tried my best to remove sudo commands but it still raises error).

```bash
❯ chmod +x /tmp/stretch_create_ament_workspace.sh
❯ /tmp/stretch_create_ament_workspace.sh
         
Please run this script without sudo.

```

Is there any way to help me get out of this installation hell? Thank you very much!

---

<div class="post-metadata">

**Author:** ![Jinyao\_Zhou](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/jinyao_zhou/32/1081_2.png) [@Jinyao\_Zhou](https://forum.hello-robot.com/u/Jinyao_Zhou)\
**Post date:** [January 28, 2026, 11:59pm UTC](https://forum.hello-robot.com/t/install-stretch-ros-in-docker/1442/2 "2026-01-28T23:59:21Z")

</div>

The installation of Stretch API is so smooth as this:`pip3 install hello-robot-stretch-body`, why the stretch\_ros installation is so hard 😇

---

<div class="post-metadata">

**Author:** ![Jason\_Koubi](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/jason_koubi/32/1050_2.png) [@Jason\_Koubi](https://forum.hello-robot.com/u/Jason_Koubi)\
**Post date:** [January 29, 2026, 2:00am UTC](https://forum.hello-robot.com/t/install-stretch-ros-in-docker/1442/3 "2026-01-29T02:00:34Z")

</div>

Hey @Jinyao_Zhou,

Sorry you’re running into these setup issues. Quick question first:

**Do you have a physical Stretch robot, or are you setting this up purely for simulation on a non-robot machine?**

From your description, it sounds like you’re on an Ubuntu 22.04 + ROS 2 Humble Docker environment without a Stretch robot. The Stretch install instructions are intended to be run directly on a Stretch robot, which is why you’re likely running into these issues.

For simulation on Humble, please use:

- [stretch\_ros2/stretch\_simulation at humble · hello-robot/stretch\_ros2 · GitHub](https://github.com/hello-robot/stretch_ros2/tree/humble/stretch_simulation)
- Docker setup: [stretch\_ros2/stretch\_simulation/README\_DOCKER.md at humble · hello-robot/stretch\_ros2 · GitHub](https://github.com/hello-robot/stretch_ros2/blob/humble/stretch_simulation/README_DOCKER.md)

That README includes required prerequisites and the supported workflow.

Confirming whether you have a physical robot will help us direct you to the correct installation workflow.

Best,  
Jason

---

<div class="post-metadata">

**Author:** ![Jinyao\_Zhou](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/jinyao_zhou/32/1081_2.png) [@Jinyao\_Zhou](https://forum.hello-robot.com/u/Jinyao_Zhou)\
**Post date:** [January 29, 2026, 6:17am UTC](https://forum.hello-robot.com/t/install-stretch-ros-in-docker/1442/4 "2026-01-29T06:17:44Z")

</div>

Hi Jason, thanks for the quick response, appreciate that. Yes I want to be able to develop without the robot, so I’m trying to get stretch\_ros2 packages installed on my computer. My laptop is with Nvidia 5060 GPU and shows severe incompatibility with Ubuntu 22.04 so I have to use Docker. My laptop is currently with Ubuntu 24.04 and ROS2 Jazzy.

I don’t even have to run simulation, I just want to have stretch\_ros2 packages successfully “import” in my python scripts while writing the code. Is there any simpler way to achieve this? I just checked your Docker setup link, seems still need Ubuntu 22.04 as prerequiste?

---

<div class="post-metadata">

**Author:** ![shehab](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/shehab/32/936_2.png) [@shehab](https://forum.hello-robot.com/u/shehab)\
**Post date:** [January 29, 2026, 3:56pm UTC](https://forum.hello-robot.com/t/install-stretch-ros-in-docker/1442/5 "2026-01-29T15:56:51Z")

</div>

Hi @Jinyao_Zhou,

Thank you for your post!

Following the installation instructions in [Simulation Tutorial - Stretch Docs](https://docs.hello-robot.com/0.3/ros2/stretch_simulation/) is the right way to go when you are trying to install `stretch_ros2` on a non-robot computer. This setup script creates dummy environment variables that are normally on a standard robot install.

`stretch_ros2` should be able to run on Ubuntu 24.04, but it’s not well tested, so we recommend sticking to Ubuntu 22.04 for your development. If you are using Docker with the NVidia Container Toolkit, then the Docker container would run Ubuntu 22.04.

Could you try to run ` bash /tmp/stretch_create_ament_workspace.sh` without sudo to get around the `Please run this script without sudo.` error? Please let me know if this works for you!

Best,  
Shehab

---

<div class="post-metadata">

**Author:** ![shehab](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/shehab/32/936_2.png) [@shehab](https://forum.hello-robot.com/u/shehab)\
**Post date:** [February 9, 2026, 6:56pm UTC](https://forum.hello-robot.com/t/install-stretch-ros-in-docker/1442/6 "2026-02-09T18:56:33Z")

</div>

Hi @Jinyao_Zhou,

Just following up, were you able to resolve this issue?

Best,  
Shehab
