Skip to content

Commit

Permalink
Remove the need to do xhost commands
Browse files Browse the repository at this point in the history
  • Loading branch information
apockill committed Nov 25, 2024
1 parent 6631247 commit 59c1a78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ services:
volumes:
# Necessary for display passthrough
- "/tmp/.X11-unix:/tmp/.X11-unix:rw"
- ~/.Xauthority:/root/.Xauthority
# Mount the current directory so users are not confused about data saving locations
- ".:/lerobot"
# Pass through USB devices
- "/dev:/dev"
environment:
# Necessary for display passthrough
DISPLAY: $DISPLAY
XAUTHORITY: $XAUTHORITY
# Give the container as much access as possible to the host machine.
# Folks using this library might be less familiar with how docker isolates devices
# such as USB or networks, so removing that layer is helpful for the purposes of
Expand Down

0 comments on commit 59c1a78

Please sign in to comment.