Skip to content

Commit 1fc3c73

Browse files
committed
add xhost
Signed-off-by: Mingxin Zheng <[email protected]>
1 parent 01dd387 commit 1fc3c73

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

workflows/robotic_ultrasound/docker/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ The license file should also be copied to the `~/docker/rti` directory, which wi
3030
Since we need to run multiple instances (policy runner, simulation, etc.), we need to use `-d` to run the container in detached mode.
3131

3232
```bash
33+
xhost +local:docker
3334
docker run --name isaac-sim --entrypoint bash -itd --runtime=nvidia --gpus all -e "ACCEPT_EULA=Y" --rm --network=host \
35+
-e DISPLAY=$DISPLAY \
3436
-e "PRIVACY_CONSENT=Y" \
37+
-v /tmp/.X11-unix:/tmp/.X11-unix \
3538
-v ~/docker/isaac-sim/cache/kit:/isaac-sim/kit/cache:rw \
3639
-v ~/docker/isaac-sim/cache/ov:/root/.cache/ov:rw \
3740
-v ~/docker/isaac-sim/cache/pip:/root/.cache/pip:rw \
@@ -58,7 +61,7 @@ The policy runner will be running in an environment managed by `uv` located in `
5861
### Run Simulation
5962

6063
```bash
61-
docker exec -it isaac-sim bash
64+
docker exec -it isaac-sim bash -c "python simulation/environments/sim_with_dds.py --enable_camera --livestream 2"
6265
# Inside the container, run the simulation
63-
python simulation/environments/sim_with_dds.py --enable_camera --livestream 2
66+
6467
```

0 commit comments

Comments
 (0)