roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

Spotlight cannot switch back to Docker Desktop

Open dryhumor opened this issue 2 years ago • 11 comments

Description

When Docker Desktop is already running, I'm unable to bring it back into focus by selecting it in Spotlight.

Reproduce

  1. Run Docker Desktop
  2. Type Cmd+Space to open Spotlight
  3. Search for and select Finder.app
    • This brings a Finder window into focus
  4. Type Cmd+Space to open Spotlight
  5. 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.

dryhumor avatar Aug 17 '23 18:08 dryhumor

This is actually a pretty old issue and it's quite annoying. I'm happy that this issue has raised.

GarryOne avatar Sep 12 '23 11:09 GarryOne

I'm transferring this issue to the roadmap repo to increase visibility.

bsousaa avatar Sep 12 '23 11:09 bsousaa

This issue is duplicated by https://github.com/docker/roadmap/issues/781

macmirchdocker avatar Nov 09 '23 16:11 macmirchdocker

thank you @dryhumor for reporting this bug. This is very annoying bug and I would appreciate if it get's resolved at earliest.

zaheeruddinfaizdl avatar Nov 20 '23 09:11 zaheeruddinfaizdl

Same bug here.

Max OS 14.5 (23F79) Docker Desktop 4.29.0, 4.31.0

thank you for reporting

hwanseokjang-lunit avatar Jul 12 '24 02:07 hwanseokjang-lunit

Same here. I also have this issue when using raycast (spotlight alternative) Mac OS 14.3 Docker Desktop 4.28.0

NeoHuncho avatar Jul 31 '24 12:07 NeoHuncho

It is driving me nuts.

cyfyifanchen avatar Aug 01 '24 00:08 cyfyifanchen

Same.

Mac OS: 14.6.1 Docker Desktop: 4.32.0 (157355)

aspanue avatar Sep 06 '24 23:09 aspanue

Same here.

Mac OS: Sequoia 15.2 Docker Desktop: v4.37.2

dev-mantas avatar Jan 23 '25 18:01 dev-mantas

what the heck, closed?

cyfyifanchen avatar Mar 12 '25 09:03 cyfyifanchen

Same here.. Mac OS: Sequoia 15.3.1 Docker Desktop: v4.39.0

Kall-Michal avatar Mar 18 '25 13:03 Kall-Michal

Same, this is super annoying

berenar avatar May 13 '25 12:05 berenar

Omg this is the most annoying bug in my day-to-day. Someone please fix it 😭 I would if I knew how

miparnisari avatar Jun 05 '25 18:06 miparnisari

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 avatar Jun 13 '25 09:06 K4Lok

@K4Lok you are gonna save everyone's life! How can we ever thank you!

cyfyifanchen avatar Jun 13 '25 10:06 cyfyifanchen

@cyfyifanchen Glad it helps! This Docker Desktop bug was driving me crazy, so I figured a plugin was the way to go. Cheers!

K4Lok avatar Jun 13 '25 10:06 K4Lok

@K4Lok this is exactly what raycast was created for - solving mild recurring headaches hahaha. thanks so much for this ❤️

mg-grumsendev avatar Jun 17 '25 15:06 mg-grumsendev