-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
Description
Description
When closing out Compose Watch, I'm seeing a panic output:
panic: close of closed channel
goroutine 28 [running]:
github.com/docker/compose/v5/pkg/watch.(*fseventNotify).Close(0x140003ad650)
github.com/docker/compose/v5/pkg/watch/watcher_darwin.go:98 +0x70
github.com/docker/compose/v5/pkg/compose.(*composeService).watch.func2()
github.com/docker/compose/v5/pkg/compose/watch.go:289 +0x48
github.com/docker/compose/v5/pkg/compose.(*Watcher).Start.func2()
github.com/docker/compose/v5/pkg/compose/watch.go:98 +0x30
created by github.com/docker/compose/v5/pkg/compose.(*Watcher).Start in goroutine 1
github.com/docker/compose/v5/pkg/compose/watch.go:97 +0x248
Steps To Reproduce
-
Create a Compose file with Watch:
services: app: image: nginx develop: watch: - path: ./src action: sync target: /usr/share/nginx/html initial_sync: true
-
Add a simple index.html file (so it has something to watch):
mkdir src && echo "HI THERE" > src/index.html
-
Start watch:
docker compose up --watch
-
Stop it with a Ctrl+C. See the error
Compose Version
Docker Compose version v5.0.2
Docker Environment
Client:
Version: 29.2.0
Context: desktop-linux
Debug Mode: false
Plugins:
ai: Docker AI Agent - Ask Gordon (Docker Inc.)
Version: v1.17.2
Path: /Users/mikesir87/.docker/cli-plugins/docker-ai
buildx: Docker Buildx (Docker Inc.)
Version: v0.31.0-desktop.1
Path: /Users/mikesir87/.docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v5.0.2
Path: /Users/mikesir87/.docker/cli-plugins/docker-compose
debug: Get a shell into any image or container (Docker Inc.)
Version: 0.0.47
Path: /Users/mikesir87/.docker/cli-plugins/docker-debug
desktop: Docker Desktop commands (Docker Inc.)
Version: v0.3.0
Path: /Users/mikesir87/.docker/cli-plugins/docker-desktop
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.31
Path: /Users/mikesir87/.docker/cli-plugins/docker-extension
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v1.4.0
Path: /Users/mikesir87/.docker/cli-plugins/docker-init
mcp: Docker MCP Plugin (Docker Inc.)
Version: v0.37.0
Path: /Users/mikesir87/.docker/cli-plugins/docker-mcp
model: Docker Model Runner (Docker Inc.)
Version: v1.0.8
Path: /Users/mikesir87/.docker/cli-plugins/docker-model
offload: Docker Offload (Docker Inc.)
Version: v0.5.42
Path: /Users/mikesir87/.docker/cli-plugins/docker-offload
pass: Docker Pass Secrets Manager Plugin (beta) (Docker Inc.)
Version: v0.0.24
Path: /Users/mikesir87/.docker/cli-plugins/docker-pass
sandbox: Docker Sandbox (Docker Inc.)
Version: v0.7.1
Path: /Users/mikesir87/.docker/cli-plugins/docker-sandbox
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
Version: 0.6.0
Path: /Users/mikesir87/.docker/cli-plugins/docker-sbom
scout: Docker Scout (Docker Inc.)
Version: v1.19.0
Path: /Users/mikesir87/.docker/cli-plugins/docker-scout
Server:
Containers: 11
Running: 0
Paused: 0
Stopped: 11
Images: 142
Server Version: 29.2.0
Storage Driver: overlayfs
driver-type: io.containerd.snapshotter.v1
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
CDI spec directories:
/etc/cdi
/var/run/cdi
Discovered Devices:
cdi: docker.com/gpu=webgpu
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: dea7da592f5d1d2b7755e3a161be07f43fad8f75
runc version: v1.3.4-0-gd6d73eb8
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.12.67-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: aarch64
CPUs: 16
Total Memory: 7.652GiB
Name: docker-desktop
ID: 0b111449-82a1-4dff-9efb-e06e8819b7bd
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
No Proxy: hubproxy.docker.internal
Labels:
com.docker.desktop.address=unix:///Users/mikesir87/Library/Containers/com.docker.docker/Data/docker-cli.sock
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5555
::1/128
127.0.0.0/8
Live Restore Enabled: false
Firewall Backend: iptables
Anything else?
No response
Reactions are currently unavailable