NVIDIA-ISAAC-ROS / NVIDIA-ISAAC-ROS/isaac_ros_common
DISPLAY environment variable not set inside Docker container
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 317
- Forks
- 227
- PR merge metrics
- No merged PRs in 30d
Description
Description:
The current implementation of the run_dev.sh script attempts to pass the host's DISPLAY environment variable to the Docker container by adding the "-e DISPLAY=$DISPLAY" argument to the DOCKER_ARGS array. However, after modifying the script and recreating the container, the DISPLAY environment variable is still not set inside the container.
Steps to reproduce:
-
Modify the run_dev.sh script to include the following line:
DOCKER_ARGS+=("-e DISPLAY=$DISPLAY") -
Run the modified run_dev.sh script to create a new Docker container.
-
Inside the container, run
echo $DISPLAY.
Expected behavior:
The echo $DISPLAY command should output the value of the host's DISPLAY environment variable.
Actual behavior:
The echo $DISPLAY command outputs an empty string, indicating that the DISPLAY environment variable is not set inside the container.
Additional information:
- Host operating system: Ubuntu 20.04.6 LTS aarch64
- Docker version: 26.0.2, build 3c863ff
To work around this issue, I currently have to manually set the DISPLAY environment variable inside the container using export DISPLAY=:0. However, this should not be necessary if the run_dev.sh script is correctly passing the host's DISPLAY environment variable to the container.
Please advise on how to properly pass the host's DISPLAY environment variable to the Docker container so that it is accessible inside the container without requiring manual intervention.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating run_dev.sh and inspect where the DOCKER_ARGS array is assembled, especially the reported DISPLAY argument. Reproduce the container launch on the stated Ubuntu and Docker setup, then check the value with echo $DISPLAY inside the container. Done means the host DISPLAY value is available without manually exporting it inside the container.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, shell
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100