Description
When using docker compose up --watch in tmux, the interactive menu is not able to start without using sudo. Without the interactive menu, all the watch functionality just doesn't work.
Steps To Reproduce
- Using the following minimal compose.yml:
services:
test:
build: .
container_name: test
develop:
watch:
- action: rebuild
path: .
- Open a tmux session (I'm using tmux 3.5a)
- Run
docker compose up --watch. Here is the output (notice how watch doesn't work):

- Run
sudo docker compose up --watch. Here is the output:

Not pictured but the interactive menu at the bottom only appears in the sudo example.
Compose Version
Docker Compose version 2.32.0
Docker Environment
Client:
Version: 27.3.1
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: 0.19.2
Path: /usr/lib/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: 2.32.0
Path: /usr/lib/docker/cli-plugins/docker-compose
Server:
Containers: 3
Running: 0
Paused: 0
Stopped: 3
Images: 8
Server Version: 27.3.1
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: true
Native Overlay Diff: false
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 207ad711eabd375a01713109a8a197d197ff6542.m
runc version:
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.12.3-arch1-1
Operating System: Arch Linux
OSType: linux
Architecture: x86_64
CPUs: 16
Total Memory: 31.16GiB
Name: martinpc
ID: fdefd076-daa0-4ea2-973d-57ff6558fde6
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Anything else?
No response
Description
When using
docker compose up --watchin tmux, the interactive menu is not able to start without using sudo. Without the interactive menu, all the watch functionality just doesn't work.Steps To Reproduce
docker compose up --watch. Here is the output (notice how watch doesn't work):sudo docker compose up --watch. Here is the output:Not pictured but the interactive menu at the bottom only appears in the sudo example.
Compose Version
Docker Environment
Anything else?
No response