docker mode: allow username override

This commit is contained in:
GitHub Copilot
2026-01-29 19:46:46 +00:00
parent 64f2a8a3be
commit 6845fe45b7
4 changed files with 41 additions and 0 deletions
+9
View File
@@ -107,6 +107,15 @@ When a container starts with either label, it automatically appears in the dashb
Containers that only specify `webterm-theme` are still included and use the default auto command.
**Environment Variables:**
- `WEBTERM_DOCKER_USERNAME` - Set to run Docker exec sessions as a specific user (default: root)
- `WEBTERM_DOCKER_AUTO_COMMAND` - Override the default `auto` command (default: `tmux new-session -As webterm`)
Example: Start containers and exec into them as `developer` user:
```bash
WEBTERM_DOCKER_USERNAME=developer webterm --docker-watch
```
Example docker-compose.yaml:
```yaml