Skip to content

Instantly share code, notes, and snippets.

@KorinFlakes
Created October 8, 2025 15:23
Show Gist options
  • Select an option

  • Save KorinFlakes/150458f7c32112b9e0b806faa833e847 to your computer and use it in GitHub Desktop.

Select an option

Save KorinFlakes/150458f7c32112b9e0b806faa833e847 to your computer and use it in GitHub Desktop.
Launch Script
#!/bin/bash
SESSION="wolf"
# Check if Wolf container is already running
if docker ps --format '{{.Names}}' | grep -q "^wolf$"; then
echo "⚠ Wolf container is already running."
echo "πŸ’‘ Attach with: tmux attach -t $SESSION"
exit 0
fi
# Kill any previous tmux session
tmux kill-session -t $SESSION 2>/dev/null
# Launch Wolf in tmux with full device and display access
tmux new-session -d -s $SESSION "bash -c '
echo βœ… Starting Wolf container...
docker run --rm -it \
--gpus=all \
--name wolf \
--network host \
--device /dev/uinput \
--device /dev/uhid \
--device /dev/input \
--device /dev/dri:/dev/dri \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /run/udev:/run/udev:rw \
-v /etc/wolf:/etc/wolf:rw \
-v /var/lib/dbus:/var/lib/dbus \
-e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \
-e WOLF_WAYLAND_DISPLAY=wayland-1 \
-e WOLF_LOG_LEVEL=DEBUG \
--group-add video \
--group-add audio \
ghcr.io/games-on-whales/wolf:stable || echo ❌ Docker failed
echo πŸ’€ Container exited. Press Ctrl+D to close session.
exec bash
'"
echo "βœ… Wolf launched in tmux session '$SESSION'"
echo "πŸ’‘ Attach with: tmux attach -t $SESSION"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment