Created
October 8, 2025 15:23
-
-
Save KorinFlakes/150458f7c32112b9e0b806faa833e847 to your computer and use it in GitHub Desktop.
Launch Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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