Skip to content

Commit 1a58efe

Browse files
fix(docker): export ROS_LOCALHOST_ONLY to avoid running error with fastdds and cyclonedss
1 parent 454646f commit 1a58efe

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ ARG IMAGE_SOURCE_REPO="isri-aist/azure-kinect-container"
44
FROM osrf/ros:${ROS_DISTRO}-desktop
55
ARG IMAGE_SOURCE_REPO
66

7+
ENV ROS_LOCALHOST_ONLY=1
8+
79
LABEL org.opencontainers.image.source="https://github.com/${IMAGE_SOURCE_REPO}"
810
LABEL org.opencontainers.image.description="Development environment for $IMAGE_SOURCE_REPO (ros $ROS_DISTRO)"
911

10-
# Install dependencies
1112
# Install dependencies
1213
RUN apt-get update && apt-get install -y \
1314
curl \

readme.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@ This command install Azure Kinect SDK and ROS2 driver.
3636
Once the container is built and your camera is plugged in, run the following command to launch the container:
3737

3838
```bash
39-
docker run -it -d --rm -e DISPLAY=$DISPLAY -e ROS_DOMAIN_ID=10 -v /tmp/.X11-unix:/tmp/.X11-unix --net=host --ipc=host --privileged ghcr.io/isri-aist/azure-kinect-container:humble
39+
docker run -it --rm -d -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --net=host --privileged --runtime=nvidia --gpus=all -e NVIDIA_DRIVER_CAPABILITIES=all ghcr.io/isri-aist/azure-kinect-container:humble
4040

41-
export ROS_DOMAIN_ID=10
4241
rqt # can be used to visualize current image
4342
```
4443

4544
> ℹ️ --privileged is required to access USB devices. X11 display is passed to allow GUI applications like RViz to render (if used).
4645
47-
> 💻 If you want to use your host gpu, you will need to install NVIDIA Container Toolkit and add the following content to the run command : `--runtime=nvidia --gpus=all`
46+
> 💻 If you want to use your host gpu, you will need to install NVIDIA Container Toolkit and add the following content to the run command : `-e NVIDIA_DRIVER_CAPABILITIES=all --runtime=nvidia --gpus=all`

0 commit comments

Comments
 (0)