Spotlight cannot switch back to Docker Desktop
Description
When Docker Desktop is already running, I'm unable to bring it back into focus by selecting it in Spotlight.
Reproduce
- Run Docker Desktop
- Type Cmd+Space to open Spotlight
- Search for and select Finder.app
- This brings a Finder window into focus
- Type Cmd+Space to open Spotlight
- Search for and select Docker.app
- This takes the Finder window out of focus, but Finder is still the active application
Expected behavior
Docker Desktop should come back into focus when selected in Spotlight.
docker version
Client:
Cloud integration: v1.0.35
Version: 24.0.2
API version: 1.43
Go version: go1.20.4
Git commit: cb74dfc
Built: Thu May 25 21:51:16 2023
OS/Arch: darwin/amd64
Context: desktop-linux
Server: Docker Desktop 4.21.1 (114176)
Engine:
Version: 24.0.2
API version: 1.43 (minimum version 1.12)
Go version: go1.20.4
Git commit: 659604f
Built: Thu May 25 21:52:17 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.21
GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8
runc:
Version: 1.1.7
GitCommit: v1.1.7-0-g860f061
docker-init:
Version: 0.19.0
GitCommit: de40ad0
docker info
Client:
Version: 24.0.2
Context: desktop-linux
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.0
Path: /Users/jonathanhironaga/.docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.19.1
Path: /Users/jonathanhironaga/.docker/cli-plugins/docker-compose
dev: Docker Dev Environments (Docker Inc.)
Version: v0.1.0
Path: /Users/jonathanhironaga/.docker/cli-plugins/docker-dev
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.20
Path: /Users/jonathanhironaga/.docker/cli-plugins/docker-extension
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v0.1.0-beta.6
Path: /Users/jonathanhironaga/.docker/cli-plugins/docker-init
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
Version: 0.6.0
Path: /Users/jonathanhironaga/.docker/cli-plugins/docker-sbom
scan: Docker Scan (Docker Inc.)
Version: v0.26.0
Path: /Users/jonathanhironaga/.docker/cli-plugins/docker-scan
scout: Command line tool for Docker Scout (Docker Inc.)
Version: 0.16.1
Path: /Users/jonathanhironaga/.docker/cli-plugins/docker-scout
Server:
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 14
Server Version: 24.0.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
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 logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8
runc version: v1.1.7-0-g860f061
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 5.15.49-linuxkit-pr
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 11.7GiB
Name: docker-desktop
ID: 030bde93-908b-4a9f-bbae-dbc4bd813989
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
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5555
127.0.0.0/8
Live Restore Enabled: false
Diagnostics ID
8DDFEBFF-B621-4896-983A-FAE27FC2B1B1/20230817175227
Additional Info
I'm running macOS Ventura 13.4.1 (c).
I checked macOS System Settings > Siri & Spotlight > Spotlight, but didn't find any app-specific configuration options.
This is actually a pretty old issue and it's quite annoying. I'm happy that this issue has raised.
I'm transferring this issue to the roadmap repo to increase visibility.
This issue is duplicated by https://github.com/docker/roadmap/issues/781
thank you @dryhumor for reporting this bug. This is very annoying bug and I would appreciate if it get's resolved at earliest.
Same bug here.
Max OS 14.5 (23F79) Docker Desktop 4.29.0, 4.31.0
thank you for reporting
Same here. I also have this issue when using raycast (spotlight alternative) Mac OS 14.3 Docker Desktop 4.28.0
It is driving me nuts.
Same.
Mac OS: 14.6.1 Docker Desktop: 4.32.0 (157355)
Same here.
Mac OS: Sequoia 15.2 Docker Desktop: v4.37.2
what the heck, closed?
Same here.. Mac OS: Sequoia 15.3.1 Docker Desktop: v4.39.0
Same, this is super annoying
Omg this is the most annoying bug in my day-to-day. Someone please fix it 😭 I would if I knew how
Hi everyone, I've created a Raycast plugin Open Docker that fixes this annoying behavior!
For those not using Raycast, the core idea is using AppleScript:
osascript -e 'tell application "Docker Desktop" to reopen' -e 'delay 0.5' -e 'tell application "Docker Desktop" to activate'
@K4Lok you are gonna save everyone's life! How can we ever thank you!
@cyfyifanchen Glad it helps! This Docker Desktop bug was driving me crazy, so I figured a plugin was the way to go. Cheers!
@K4Lok this is exactly what raycast was created for - solving mild recurring headaches hahaha. thanks so much for this ❤️