Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install both docker CLI and Docker app #146078

Closed
6 tasks done
osalbahr opened this issue Apr 28, 2023 · 13 comments · Fixed by #146192
Closed
6 tasks done

Can't install both docker CLI and Docker app #146078

osalbahr opened this issue Apr 28, 2023 · 13 comments · Fixed by #146192
Labels
awaiting maintainer feedback Issue needs response from a maintainer. outdated

Comments

@osalbahr
Copy link
Contributor

osalbahr commented Apr 28, 2023

Verification

Description of issue

I am unable to brew both docker and --cask docker to have both the CLI tool and the Docker app. Normally, I'd open -a docker to get the docker daemon running, and then use docker normally. I am unable to do that with brew install --cask docker due to conflicting files.

~$ brew install --cask docker
==> Caveats
If your CLI tools were symlinked to $HOME/.docker/bin your path should be modified to include:

  $HOME/.docker/bin

==> Downloading https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
######################################################################### 100.0%
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Backing App 'Docker.app' up to '/usr/local/Caskroom/docker/4.19.0,106363/Doc
==> Removing App '/Applications/Docker.app'
==> Purging files for version 4.19.0,106363 of Cask docker
Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'.
~$ brew install --cask docker --force
==> Downloading https://formulae.brew.sh/api/cask.jws.json
##O#- #                                                                        
==> Caveats
If your CLI tools were symlinked to $HOME/.docker/bin your path should be modified to include:

  $HOME/.docker/bin

==> Downloading https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Backing App 'Docker.app' up to '/usr/local/Caskroom/docker/4.19.0,106363/Doc
==> Removing App '/Applications/Docker.app'
==> Purging files for version 4.19.0,106363 of Cask docker
Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'.

See Homebrew/homebrew-core#129609 for previous attempts.

Note: installing Docker from https://www.docker.com/ "just works":

~$ docker run -it alpine
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
~$ open -a docker
~$ docker run -it alpine
/ # uname -a
Linux 6bd2242fcb25 5.15.49-linuxkit #1 SMP Tue Sep 13 07:51:46 UTC 2022 x86_64 Linux
/ # 

Here is the full output of all the commands I tried since starting this issue:

Last login: Fri Apr 28 03:49:28 on ttys001

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
~$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
Warning: This script will remove:
/Users/osos/Library/Caches/Homebrew/
/usr/local/Caskroom/
/usr/local/Cellar/
/usr/local/bin/brew -> /usr/local/bin/brew
Are you sure you want to uninstall Homebrew? This will remove your installed packages! [y/N] y
==> Removing Homebrew installation...
Warning: Failed to delete /usr/local/Caskroom
rm: /usr/local/Caskroom: Permission denied
Warning: Failed to delete /usr/local/Cellar
rm: /usr/local/Cellar: Permission denied
==> Removing empty directories...
Password:
==> /usr/bin/sudo /usr/bin/find /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/var /usr/local/Caskroom /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks -name .DS_Store -delete
==> /usr/bin/sudo /usr/bin/find /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/var /usr/local/Caskroom /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks -depth -type d -empty -exec rmdir {} ;
==> Homebrew uninstalled!
The following possible Homebrew files were not deleted:
/usr/local/Frameworks/
/usr/local/Homebrew/
/usr/local/bin/
/usr/local/etc/
/usr/local/go/
/usr/local/include/
/usr/local/lib/
/usr/local/mysql -> /usr/local/mysql
/usr/local/mysql-8.0.32-macos13-x86_64/
/usr/local/opt/
/usr/local/sbin/
/usr/local/share/
/usr/local/var/
You may wish to remove them yourself.

~$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password)...
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/Cellar
/usr/local/Caskroom

Press RETURN/ENTER to continue or any other key to abort:
==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Caskroom
==> /usr/bin/sudo /bin/chmod ug=rwx /usr/local/Cellar /usr/local/Caskroom
==> /usr/bin/sudo /usr/sbin/chown osos /usr/local/Cellar /usr/local/Caskroom
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Cellar /usr/local/Caskroom
==> /usr/bin/sudo /usr/sbin/chown -R osos:admin /usr/local/Homebrew
==> /usr/bin/sudo /bin/mkdir -p /Users/osos/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/osos/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown -R osos /Users/osos/Library/Caches/Homebrew
==> Downloading and installing Homebrew...
HEAD is now at e191b827c Merge pull request #15257 from Bo98/download-refactor
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh

~$ docker run alpine
-bash: docker: command not found
~$ file '/usr/local/share/zsh/site-functions/_docker'
/usr/local/share/zsh/site-functions/_docker: cannot open `/usr/local/share/zsh/site-functions/_docker' (No such file or directory)
~$ brew install docker
Warning: Treating docker as a formula. For the cask, use homebrew/cask/docker
==> Fetching docker
==> Downloading https://ghcr.io/v2/homebrew/core/docker/manifests/23.0.5
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/docker/blobs/sha256:aa59d361b28
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################### 100.0%
==> Pouring docker--23.0.5.monterey.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/docker/23.0.5: 12 files, 32.5MB
==> Running `brew cleanup docker`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
~$ file '/usr/local/share/zsh/site-functions/_docker'
/usr/local/share/zsh/site-functions/_docker: ASCII text
~$ docker run alpine
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
~$ open -a docker
Unable to find application named 'docker'
~$ brew install --cask docker
==> Caveats
If your CLI tools were symlinked to $HOME/.docker/bin your path should be modified to include:

  $HOME/.docker/bin

==> Downloading https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
######################################################################### 100.0%
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Backing App 'Docker.app' up to '/usr/local/Caskroom/docker/4.19.0,106363/Doc
==> Removing App '/Applications/Docker.app'
==> Purging files for version 4.19.0,106363 of Cask docker
Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'.
~$ brew install --cask docker --force
==> Downloading https://formulae.brew.sh/api/cask.jws.json
##O#- #                                                                        
==> Caveats
If your CLI tools were symlinked to $HOME/.docker/bin your path should be modified to include:

  $HOME/.docker/bin

==> Downloading https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Backing App 'Docker.app' up to '/usr/local/Caskroom/docker/4.19.0,106363/Doc
==> Removing App '/Applications/Docker.app'
==> Purging files for version 4.19.0,106363 of Cask docker
Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'.
~$ update-reset && brew update
-bash: update-reset: command not found
~$ brew update-reset && brew update
==> Fetching /usr/local/Homebrew...

==> Resetting /usr/local/Homebrew...
branch 'master' set up to track 'origin/master'.
Switched to and reset branch 'master'
Your branch is up to date with 'origin/master'.

==> Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask...

==> Resetting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask...
Updating files: 100% (4231/4231), done.
branch 'master' set up to track 'origin/master'.
Reset branch 'master'
Your branch is up to date with 'origin/master'.

==> Fetching /usr/local/Homebrew/Library/Taps/null-dev/homebrew-firefox-profile-switcher...

==> Resetting /usr/local/Homebrew/Library/Taps/null-dev/homebrew-firefox-profile-switcher...
branch 'master' set up to track 'origin/master'.
Reset branch 'master'
Your branch is up to date with 'origin/master'.

Already up-to-date.
~$ brew install --cask docker --force
==> Caveats
If your CLI tools were symlinked to $HOME/.docker/bin your path should be modified to include:

  $HOME/.docker/bin

==> Downloading https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Backing App 'Docker.app' up to '/usr/local/Caskroom/docker/4.19.0,106363/Doc
==> Removing App '/Applications/Docker.app'
==> Purging files for version 4.19.0,106363 of Cask docker
Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'.
~$ brew install --cask docker --verbose --debug
/usr/local/Homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromAPILoader): loading docker
==> Cask::Installer#install
==> Printing caveats
==> Caveats
If your CLI tools were symlinked to $HOME/.docker/bin your path should be modified to include:

  $HOME/.docker/bin

==> Cask::Installer#fetch
==> Downloading https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.0.15-97-ge191b82\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 12.6.5\)\ curl/7.87.0 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.0.15-97-ge191b82\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 12.6.5\)\ curl/7.87.0 --header Accept-Language:\ en --retry 3 --fail --location --silent --head --request GET https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Checking quarantine support
/usr/bin/env /usr/bin/xattr -h
/usr/bin/env /usr/bin/swift -target x86_64-apple-macosx12 /usr/local/Homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg is quarantined
==> Verifying checksum for 'a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg'
/usr/bin/env tar --list --file /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env hdiutil imageinfo -format /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Installing Cask docker
==> Cask::Installer#stage
==> Extracting primary container
==> Using container class UnpackStrategy::Dmg for /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env hdiutil attach -plist -nobrowse -readonly -mountrandom /private/tmp/d20230428-68443-leotcq /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env find . -print0
/usr/bin/env mkbom -s -i /private/tmp/20230428-68443-kyiduu.list -- /private/tmp/20230428-68443-mhjtgl.bom
/usr/bin/env ditto --bom /private/tmp/20230428-68443-mhjtgl.bom -- /private/tmp/d20230428-68443-leotcq/dmg.lkMURl /private/tmp/d20230428-68443-txbqqu
/usr/bin/env diskutil info -plist /private/tmp/d20230428-68443-leotcq/dmg.lkMURl
/usr/bin/env diskutil eject /private/tmp/d20230428-68443-leotcq/dmg.lkMURl
/usr/bin/env cp -pR /private/tmp/d20230428-68443-txbqqu/Docker.app/. /usr/local/Caskroom/docker/4.19.0,106363/Docker.app
==> Verifying Gatekeeper status of /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg is quarantined
==> Propagating quarantine from /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg to /usr/local/Caskroom/docker/4.19.0,106363
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xargs -0 -- /bin/chmod -h u\+w
/usr/bin/env /usr/bin/xargs -0 -- /usr/bin/xattr -w com.apple.quarantine 0181\;644b7c01\;Homebrew\\x20Cask\;19CE4232-A908-4B4D-8ECA-0B63323E829A
==> Creating metadata directory: /usr/local/Caskroom/docker/.metadata/4.19.0,106363/20230428080201.781
==> Creating metadata subdirectory: /usr/local/Caskroom/docker/.metadata/4.19.0,106363/20230428080201.781/Casks
==> Installing artifacts
==> Installing artifact of class Cask::Artifact::App
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Installing artifact of class Cask::Artifact::Binary
==> Reverting installation of artifact of class Cask::Artifact::App
==> Backing App 'Docker.app' up to '/usr/local/Caskroom/docker/4.19.0,106363/Docker.app'
/usr/bin/env /bin/cp -pR /Applications/Docker.app /usr/local/Caskroom/docker/4.19.0,106363/Docker.app
==> Removing App '/Applications/Docker.app'
==> Purging files for version 4.19.0,106363 of Cask docker
Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'.
/usr/local/Homebrew/Library/Homebrew/cask/artifact/symlinked.rb:62:in `link'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/binary.rb:13:in `link'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/symlinked.rb:23:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:235:in `block in install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/artifact_set.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/artifact_set.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:228:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:111:in `install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:237:in `block in install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:228:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:228:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:94:in `<main>'
~$ brew install --cask docker --force --verbose --debug
~$ brew install --cask docker --force --verbose --debug
/usr/local/Homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromAPILoader): loading docker
==> Cask::Installer#install
==> Printing caveats
==> Caveats
If your CLI tools were symlinked to $HOME/.docker/bin your path should be modified to include:

  $HOME/.docker/bin

==> Cask::Installer#fetch
==> Downloading https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.0.15-97-ge191b82\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 12.6.5\)\ curl/7.87.0 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.0.15-97-ge191b82\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 12.6.5\)\ curl/7.87.0 --header Accept-Language:\ en --retry 3 --fail --location --silent --head --request GET https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Checking quarantine support
/usr/bin/env /usr/bin/xattr -h
/usr/bin/env /usr/bin/swift -target x86_64-apple-macosx12 /usr/local/Homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg is quarantined
==> Verifying checksum for 'a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg'
/usr/bin/env tar --list --file /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env hdiutil imageinfo -format /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Installing Cask docker
==> Cask::Installer#stage
==> Extracting primary container
==> Using container class UnpackStrategy::Dmg for /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env hdiutil attach -plist -nobrowse -readonly -mountrandom /private/tmp/d20230428-68678-imjim6 /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env find . -print0
/usr/bin/env mkbom -s -i /private/tmp/20230428-68678-sif5gj.list -- /private/tmp/20230428-68678-1ijiouw.bom
/usr/bin/env ditto --bom /private/tmp/20230428-68678-1ijiouw.bom -- /private/tmp/d20230428-68678-imjim6/dmg.9o6DEr /private/tmp/d20230428-68678-eukr9t
/usr/bin/env diskutil info -plist /private/tmp/d20230428-68678-imjim6/dmg.9o6DEr
/usr/bin/env diskutil eject /private/tmp/d20230428-68678-imjim6/dmg.9o6DEr
/usr/bin/env cp -pR /private/tmp/d20230428-68678-eukr9t/Docker.app/. /usr/local/Caskroom/docker/4.19.0,106363/Docker.app
==> Verifying Gatekeeper status of /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg is quarantined
==> Propagating quarantine from /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg to /usr/local/Caskroom/docker/4.19.0,106363
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xargs -0 -- /bin/chmod -h u\+w
/usr/bin/env /usr/bin/xargs -0 -- /usr/bin/xattr -w com.apple.quarantine 0181\;644b7c01\;Homebrew\\x20Cask\;19CE4232-A908-4B4D-8ECA-0B63323E829A
==> Creating metadata directory: /usr/local/Caskroom/docker/.metadata/4.19.0,106363/20230428080339.734
==> Creating metadata subdirectory: /usr/local/Caskroom/docker/.metadata/4.19.0,106363/20230428080339.734/Casks
==> Installing artifacts
==> Installing artifact of class Cask::Artifact::App
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Installing artifact of class Cask::Artifact::Binary
==> Reverting installation of artifact of class Cask::Artifact::App
==> Backing App 'Docker.app' up to '/usr/local/Caskroom/docker/4.19.0,106363/Docker.app'
/usr/bin/env /bin/cp -pR /Applications/Docker.app /usr/local/Caskroom/docker/4.19.0,106363/Docker.app
==> Removing App '/Applications/Docker.app'
==> Purging files for version 4.19.0,106363 of Cask docker
Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'.
/usr/local/Homebrew/Library/Homebrew/cask/artifact/symlinked.rb:62:in `link'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/binary.rb:13:in `link'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/symlinked.rb:23:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:235:in `block in install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/artifact_set.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/artifact_set.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:228:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:111:in `install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:237:in `block in install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:228:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:228:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:94:in `<main>'
~$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Broken symlinks were found. Remove them with `brew cleanup`:
  /usr/local/etc/bash_completion.d/docker-compose
  /usr/local/share/fish/vendor_completions.d/docker-compose.fish
  /usr/local/share/zsh/site-functions/_docker_compose
~$ brew cleanup
Pruned 3 symbolic links from /usr/local
~$ brew doctor
Your system is ready to brew.
~$ brew install --cask docker
==> Caveats
If your CLI tools were symlinked to $HOME/.docker/bin your path should be modified to include:

  $HOME/.docker/bin

==> Downloading https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Backing App 'Docker.app' up to '/usr/local/Caskroom/docker/4.19.0,106363/Doc
==> Removing App '/Applications/Docker.app'
==> Purging files for version 4.19.0,106363 of Cask docker
Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'.
~$ brew install --cask docker --verbose --debug
/usr/local/Homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromAPILoader): loading docker
==> Cask::Installer#install
==> Printing caveats
==> Caveats
If your CLI tools were symlinked to $HOME/.docker/bin your path should be modified to include:

  $HOME/.docker/bin

==> Cask::Installer#fetch
==> Downloading https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.0.15-97-ge191b82\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 12.6.5\)\ curl/7.87.0 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.0.15-97-ge191b82\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 12.6.5\)\ curl/7.87.0 --header Accept-Language:\ en --retry 3 --fail --location --silent --head --request GET https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Checking quarantine support
/usr/bin/env /usr/bin/xattr -h
/usr/bin/env /usr/bin/swift -target x86_64-apple-macosx12 /usr/local/Homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg is quarantined
==> Verifying checksum for 'a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg'
/usr/bin/env tar --list --file /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env hdiutil imageinfo -format /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Installing Cask docker
==> Cask::Installer#stage
==> Extracting primary container
==> Using container class UnpackStrategy::Dmg for /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env hdiutil attach -plist -nobrowse -readonly -mountrandom /private/tmp/d20230428-70204-100klfg /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env find . -print0
/usr/bin/env mkbom -s -i /private/tmp/20230428-70204-ru4ozs.list -- /private/tmp/20230428-70204-rxtezc.bom
/usr/bin/env ditto --bom /private/tmp/20230428-70204-rxtezc.bom -- /private/tmp/d20230428-70204-100klfg/dmg.LAmnZi /private/tmp/d20230428-70204-184xtyh
/usr/bin/env diskutil info -plist /private/tmp/d20230428-70204-100klfg/dmg.LAmnZi
/usr/bin/env diskutil eject /private/tmp/d20230428-70204-100klfg/dmg.LAmnZi
/usr/bin/env cp -pR /private/tmp/d20230428-70204-184xtyh/Docker.app/. /usr/local/Caskroom/docker/4.19.0,106363/Docker.app
==> Verifying Gatekeeper status of /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg is quarantined
==> Propagating quarantine from /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg to /usr/local/Caskroom/docker/4.19.0,106363
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xargs -0 -- /bin/chmod -h u\+w
/usr/bin/env /usr/bin/xargs -0 -- /usr/bin/xattr -w com.apple.quarantine 0181\;644b7c01\;Homebrew\\x20Cask\;19CE4232-A908-4B4D-8ECA-0B63323E829A
==> Creating metadata directory: /usr/local/Caskroom/docker/.metadata/4.19.0,106363/20230428080708.917
==> Creating metadata subdirectory: /usr/local/Caskroom/docker/.metadata/4.19.0,106363/20230428080708.917/Casks
==> Installing artifacts
==> Installing artifact of class Cask::Artifact::App
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Installing artifact of class Cask::Artifact::Binary
==> Reverting installation of artifact of class Cask::Artifact::App
==> Backing App 'Docker.app' up to '/usr/local/Caskroom/docker/4.19.0,106363/Docker.app'
/usr/bin/env /bin/cp -pR /Applications/Docker.app /usr/local/Caskroom/docker/4.19.0,106363/Docker.app
==> Removing App '/Applications/Docker.app'
==> Purging files for version 4.19.0,106363 of Cask docker
Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'.
/usr/local/Homebrew/Library/Homebrew/cask/artifact/symlinked.rb:62:in `link'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/binary.rb:13:in `link'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/symlinked.rb:23:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:235:in `block in install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/artifact_set.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/artifact_set.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:228:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:111:in `install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:237:in `block in install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:228:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:228:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:94:in `<main>'
~$ brew install --cask docker --force
==> Downloading https://formulae.brew.sh/api/cask.jws.json
#=#=#                                                                          
==> Caveats
If your CLI tools were symlinked to $HOME/.docker/bin your path should be modified to include:

  $HOME/.docker/bin

==> Downloading https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Backing App 'Docker.app' up to '/usr/local/Caskroom/docker/4.19.0,106363/Doc
==> Removing App '/Applications/Docker.app'
==> Purging files for version 4.19.0,106363 of Cask docker
Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'.
~$ brew install --cask docker --force --verbose --debug
/usr/local/Homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromAPILoader): loading docker
==> Cask::Installer#install
==> Printing caveats
==> Caveats
If your CLI tools were symlinked to $HOME/.docker/bin your path should be modified to include:

  $HOME/.docker/bin

==> Cask::Installer#fetch
==> Downloading https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.0.15-97-ge191b82\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 12.6.5\)\ curl/7.87.0 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.0.15-97-ge191b82\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 12.6.5\)\ curl/7.87.0 --header Accept-Language:\ en --retry 3 --fail --location --silent --head --request GET https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Checking quarantine support
/usr/bin/env /usr/bin/xattr -h
/usr/bin/env /usr/bin/swift -target x86_64-apple-macosx12 /usr/local/Homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg is quarantined
==> Verifying checksum for 'a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg'
/usr/bin/env tar --list --file /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env hdiutil imageinfo -format /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Installing Cask docker
==> Cask::Installer#stage
==> Extracting primary container
==> Using container class UnpackStrategy::Dmg for /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env hdiutil attach -plist -nobrowse -readonly -mountrandom /private/tmp/d20230428-70671-orsing /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env find . -print0
/usr/bin/env mkbom -s -i /private/tmp/20230428-70671-1oh1fjw.list -- /private/tmp/20230428-70671-hg5nss.bom
/usr/bin/env ditto --bom /private/tmp/20230428-70671-hg5nss.bom -- /private/tmp/d20230428-70671-orsing/dmg.I3Z1TV /private/tmp/d20230428-70671-1jod9yr
/usr/bin/env diskutil info -plist /private/tmp/d20230428-70671-orsing/dmg.I3Z1TV
/usr/bin/env diskutil eject /private/tmp/d20230428-70671-orsing/dmg.I3Z1TV
/usr/bin/env cp -pR /private/tmp/d20230428-70671-1jod9yr/Docker.app/. /usr/local/Caskroom/docker/4.19.0,106363/Docker.app
==> Verifying Gatekeeper status of /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg is quarantined
==> Propagating quarantine from /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg to /usr/local/Caskroom/docker/4.19.0,106363
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xargs -0 -- /bin/chmod -h u\+w
/usr/bin/env /usr/bin/xargs -0 -- /usr/bin/xattr -w com.apple.quarantine 0181\;644b7c01\;Homebrew\\x20Cask\;19CE4232-A908-4B4D-8ECA-0B63323E829A
==> Creating metadata directory: /usr/local/Caskroom/docker/.metadata/4.19.0,106363/20230428081002.180
==> Creating metadata subdirectory: /usr/local/Caskroom/docker/.metadata/4.19.0,106363/20230428081002.180/Casks
==> Installing artifacts
==> Installing artifact of class Cask::Artifact::App
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Installing artifact of class Cask::Artifact::Binary
==> Reverting installation of artifact of class Cask::Artifact::App
==> Backing App 'Docker.app' up to '/usr/local/Caskroom/docker/4.19.0,106363/Docker.app'
/usr/bin/env /bin/cp -pR /Applications/Docker.app /usr/local/Caskroom/docker/4.19.0,106363/Docker.app
==> Removing App '/Applications/Docker.app'
==> Purging files for version 4.19.0,106363 of Cask docker
Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'.
/usr/local/Homebrew/Library/Homebrew/cask/artifact/symlinked.rb:62:in `link'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/binary.rb:13:in `link'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/symlinked.rb:23:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:235:in `block in install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/artifact_set.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/artifact_set.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:228:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:111:in `install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:237:in `block in install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:228:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:228:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:94:in `<main>'
~$ brew doctor
Your system is ready to brew.
~$ brew config
HOMEBREW_VERSION: 4.0.15-97-ge191b82
ORIGIN: https://github.com/Homebrew/brew
HEAD: e191b827cce991f52be36b0a8fc3daed3ef66143
Last commit: 40 minutes ago
Core tap JSON: 28 Apr 07:59 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: quad-core 64-bit kabylake
Clang: 14.0.0 build 1400
Git: 2.37.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.87.0 => /usr/bin/curl
macOS: 12.6.5-x86_64
CLT: 14.2.0.0.1.1668646533
Xcode: N/A
~$ brew tap
homebrew/cask
null-dev/firefox-profile-switcher
~$ 

Command that failed

brew install --cask docker

Output of command with --verbose --debug

~$ brew install --cask docker --verbose --debug
/usr/local/Homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromAPILoader): loading docker
==> Cask::Installer#install
==> Printing caveats
==> Caveats
If your CLI tools were symlinked to $HOME/.docker/bin your path should be modified to include:

  $HOME/.docker/bin

==> Cask::Installer#fetch
==> Downloading https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.0.15-97-ge191b82\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 12.6.5\)\ curl/7.87.0 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.0.15-97-ge191b82\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 12.6.5\)\ curl/7.87.0 --header Accept-Language:\ en --retry 3 --fail --location --silent --head --request GET https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Checking quarantine support
/usr/bin/env /usr/bin/xattr -h
/usr/bin/env /usr/bin/swift -target x86_64-apple-macosx12 /usr/local/Homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg is quarantined
==> Verifying checksum for 'a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg'
/usr/bin/env tar --list --file /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env hdiutil imageinfo -format /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Installing Cask docker
==> Cask::Installer#stage
==> Extracting primary container
==> Using container class UnpackStrategy::Dmg for /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env hdiutil attach -plist -nobrowse -readonly -mountrandom /private/tmp/d20230428-70204-100klfg /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env find . -print0
/usr/bin/env mkbom -s -i /private/tmp/20230428-70204-ru4ozs.list -- /private/tmp/20230428-70204-rxtezc.bom
/usr/bin/env ditto --bom /private/tmp/20230428-70204-rxtezc.bom -- /private/tmp/d20230428-70204-100klfg/dmg.LAmnZi /private/tmp/d20230428-70204-184xtyh
/usr/bin/env diskutil info -plist /private/tmp/d20230428-70204-100klfg/dmg.LAmnZi
/usr/bin/env diskutil eject /private/tmp/d20230428-70204-100klfg/dmg.LAmnZi
/usr/bin/env cp -pR /private/tmp/d20230428-70204-184xtyh/Docker.app/. /usr/local/Caskroom/docker/4.19.0,106363/Docker.app
==> Verifying Gatekeeper status of /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg is quarantined
==> Propagating quarantine from /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg to /usr/local/Caskroom/docker/4.19.0,106363
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
/usr/bin/env /usr/bin/xargs -0 -- /bin/chmod -h u\+w
/usr/bin/env /usr/bin/xargs -0 -- /usr/bin/xattr -w com.apple.quarantine 0181\;644b7c01\;Homebrew\\x20Cask\;19CE4232-A908-4B4D-8ECA-0B63323E829A
==> Creating metadata directory: /usr/local/Caskroom/docker/.metadata/4.19.0,106363/20230428080708.917
==> Creating metadata subdirectory: /usr/local/Caskroom/docker/.metadata/4.19.0,106363/20230428080708.917/Casks
==> Installing artifacts
==> Installing artifact of class Cask::Artifact::App
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Installing artifact of class Cask::Artifact::Binary
==> Reverting installation of artifact of class Cask::Artifact::App
==> Backing App 'Docker.app' up to '/usr/local/Caskroom/docker/4.19.0,106363/Docker.app'
/usr/bin/env /bin/cp -pR /Applications/Docker.app /usr/local/Caskroom/docker/4.19.0,106363/Docker.app
==> Removing App '/Applications/Docker.app'
==> Purging files for version 4.19.0,106363 of Cask docker
Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'.
/usr/local/Homebrew/Library/Homebrew/cask/artifact/symlinked.rb:62:in `link'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/binary.rb:13:in `link'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/symlinked.rb:23:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:235:in `block in install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/artifact_set.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/artifact_set.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:228:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:111:in `install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:237:in `block in install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:228:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:228:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:94:in `<main>'
~$

Output of brew doctor and brew config

~$ brew doctor
Your system is ready to brew.
~$ brew config
HOMEBREW_VERSION: 4.0.15-97-ge191b82
ORIGIN: https://github.com/Homebrew/brew
HEAD: e191b827cce991f52be36b0a8fc3daed3ef66143
Last commit: 40 minutes ago
Core tap JSON: 28 Apr 07:59 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: quad-core 64-bit kabylake
Clang: 14.0.0 build 1400
Git: 2.37.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.87.0 => /usr/bin/curl
macOS: 12.6.5-x86_64
CLT: 14.2.0.0.1.1668646533
Xcode: N/A
~$

Output of brew tap

~$ brew tap
homebrew/cask
null-dev/firefox-profile-switcher
~$
@osalbahr
Copy link
Contributor Author

Based on https://www.weplayinternet.com/posts/error-it-seem-there-is-already-a-binary/ I tried to do the opposite, and it sort of "works"

~$ open -a docker
~$ brew install docker
Warning: Treating docker as a formula. For the cask, use homebrew/cask/docker
==> Fetching docker
==> Downloading https://ghcr.io/v2/homebrew/core/docker/manifests/23.0.5
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/09ed2d31951f9b4a42c462c0b462854e522e7484b3bd4a5b9d38a15adae7b96b--docker-23.0.5.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/docker/blobs/sha256:aa59d361b28
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/18ce4586d11f86ec90608f72aa257171e43024404708955148dff253011d9a99--docker--23.0.5.monterey.bottle.tar.gz
==> Pouring docker--23.0.5.monterey.bottle.tar.gz
==> docker cask is installed, skipping link.
Warning: The post-install step did not complete successfully
You can try again using:
  brew postinstall docker
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/docker/23.0.5: 12 files, 32.5MB
==> Running `brew cleanup docker`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
~$ brew postinstall docker
==> Postinstalling docker
Warning: The post-install step did not complete successfully
You can try again using:
  brew postinstall docker
~$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  docker
~$ brew link docker
Linking /usr/local/Cellar/docker/23.0.5... 
Error: Could not symlink etc/bash_completion.d/docker
Target /usr/local/etc/bash_completion.d/docker
already exists. You may want to remove it:
  rm '/usr/local/etc/bash_completion.d/docker'

To force the link and overwrite all conflicting files:
  brew link --overwrite docker

To list all files that would be deleted:
  brew link --overwrite --dry-run docker
~$ brew link --overwrite --dry-run docker
Would remove:
/usr/local/etc/bash_completion.d/docker -> /Applications/Docker.app/Contents/Resources/etc/docker.bash-completion
/usr/local/bin/docker -> /Applications/Docker.app/Contents/Resources/bin/docker
/usr/local/share/fish/vendor_completions.d/docker.fish -> /Applications/Docker.app/Contents/Resources/etc/docker.fish-completion
/usr/local/share/zsh/site-functions/_docker -> /Applications/Docker.app/Contents/Resources/etc/docker.zsh-completion
~$ brew link --overwrite docker
Linking /usr/local/Cellar/docker/23.0.5... 10 symlinks created.
~$ docker run -it alpine
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
f56be85fc22e: Pull complete 
Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126
Status: Downloaded newer image for alpine:latest
/ # uname -a
Linux db2882a4b2fe 5.15.49-linuxkit #1 SMP Tue Sep 13 07:51:46 UTC 2022 x86_64 Linux
/ # 

But I am not sure it is a good idea to force overwriting.

@razvanazamfirei
Copy link
Member

razvanazamfirei commented Apr 28, 2023

Hi @osalbahr, thanks for opening this. We should modify the cask to clarify that the cask and the formula are incompatible. Thank you for providing the extensive output. I will admit that given its length, it's a bit difficult to follow and understand the current state of the system.

I think the best move would be to uninstall both the formula and the cask.
brew uninstall --cask docker --force
brew uninstall --formula docker --force

Then just install the cask.
brew install --cask docker

The cask already includes the CLI tools. At some point in the set up you're asked where to install them. You can also check your settings:
CleanShot 2023-04-28 at 05 01 52@2x

Just check where they are installed. If they're not in /usr/local/bin check if $HOME/.docker/bin is in your $PATH.

@osalbahr
Copy link
Contributor Author

osalbahr commented Apr 28, 2023

The caveat does say the following:

~$ brew install --cask docker
==> Downloading https://formulae.brew.sh/api/cask.jws.json
#=#=#                                                                          
==> Caveats
If your CLI tools were symlinked to $HOME/.docker/bin your path should be modified to include:

  $HOME/.docker/bin

==> Downloading https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Linking Binary 'docker.zsh-completion' to '/usr/local/share/zsh/site-functio
==> Linking Binary 'docker-compose.fish-completion' to '/usr/local/share/fish/ve
==> Linking Binary 'docker-compose.zsh-completion' to '/usr/local/share/zsh/site
==> Linking Binary 'docker.bash-completion' to '/usr/local/etc/bash_completion.d
==> Linking Binary 'docker.fish-completion' to '/usr/local/share/fish/vendor_com
==> Linking Binary 'docker-compose.bash-completion' to '/usr/local/etc/bash_comp
🍺  docker was successfully installed!
~$ 

I am not sure what "If your CLI tools were symlinked" means, I assumed it's saying if that's something I already did, which I did not. Also, the directory does not exist:

~$ file $HOME/.docker/bin
/Users/osos/.docker/bin: cannot open `/Users/osos/.docker/bin' (No such file or directory)

I am not sure if the setup is something that happens after installing the cask, and opening the app.

Edit: Thank you for clarifying. The app does install the CLI tools in /usr/local/bin by default, which is in my $PATH.

Screen Shot 2023-04-28 at 6 13 31 AM

Screen Shot 2023-04-28 at 6 13 42 AM

Since this only happens after opening the app, I think the current caveat needs to be expanded to clarify that

  1. the CLI tools are installed only in the app's own setup. I think; and
  2. the possible symlink could only happen in the app's setup. This message can be useful if rephrased. To me, it seems like something that might have already been done before I installed the cask.

@osalbahr
Copy link
Contributor Author

osalbahr commented Apr 28, 2023

I'd like to add that after running

$ brew uninstall --cask docker --force
$ brew uninstall --formula docker --force
$ brew install --cask docker

and opening the Docker app, the setup page is skipped. The app thinks I already have gone through the setup, even though docker was removed by brew uninstall.

It was only after uninstalling Docker in the app itself, and reopening it, that the setup page appears. I'm not sure what the difference is between how Docker uninstalls itself and how brew does. It's probably some config file leftover somewhere.

Screen Shot 2023-04-28 at 6 33 28 AM

It looks like even in the Settings the app thinks that docker still exists in /usr/local/bin.

Screen Shot 2023-04-28 at 6 38 29 AM

I had to either switch to User (and then back to System), or through the Uninstall.

Note: I re-did the commands for diagnostic purposes. I do have both the docker CLI tool and Docker now.

@razvanazamfirei
Copy link
Member

Thank you for following up! Docker has additional files that are not removed by uninstall. In brew, you can remove them by appending --zap to uninstall commands.

Since it sounds like the issue was resolved, I'll be closing this! Let me know if that's not the case.

@osalbahr
Copy link
Contributor Author

osalbahr commented Apr 28, 2023

Yes, the issue is resolved for me, via a workaround. I think this issue remains until a) clear brew output that the formula and cask of the same name are incompatible, and b) clarification on how to run the docker command after installing the cask, and c) resolving the incomplete uninstall. I don’t know brew’s philosophy for handling such situations, but I don’t feel like a workaround solved it. Especially that this issue dates to while ago in multiple forums. That’s just my opinion.

for example: https://github.com/orgs/Homebrew/discussions/3471

and this 6y https://stackoverflow.com/questions/40523307/brew-install-docker-does-not-include-docker-engine

@razvanazamfirei
Copy link
Member

Thanks for the feedback!

  1. The docker cask is marked as conflicting with the docker formula. The reverse is not true, but that will be fixed.
  2. If you have any suggestions about appropriate language, we can include it in the caveat. We tend to be judicious with what we put there, but happy to work something out.
  3. This is my bad! Our zap command completely uninstalls all related files which should remove any previous configs. I should've recommended running that instead. Thanks for your patience. :)

@osalbahr
Copy link
Contributor Author

I can see that https://formulae.brew.sh/cask/docker lists docker as a "Conflicts with". However, the brew install --cask brew did not give an error or warning regarding that I have the --formula brew installed. I am not sure if this is expected. I'd expect that when I attempt to install something I shouldn't, that it should fail (unless I force it to) or at least a warning. The error message was Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'. giving no indication that the reason was conflicting brew formulae.

@osalbahr
Copy link
Contributor Author

osalbahr commented Apr 30, 2023

@razvanazamfirei is there a reason why it would Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'. before checking if conflicts exist? I can see that both have conflicts_with, so not sure.

https://github.com/Homebrew/homebrew-core/blob/master/Formula/docker.rb#L28
https://github.com/Homebrew/homebrew-cask/blob/master/Casks/docker.rb#L36

It seems strange that, in both, downloading happens regardless of any checks. Could it be an issue of checking order?


Would it be possible to check if a --cask conflicts with an existing --formula and vice versa? I understand that this might not be trivial.

For example, when I brew install docker-completion and then brew install --formula docker, the output looks better:

~$ brew install docker-completion
==> Fetching docker-completion
==> Downloading https://ghcr.io/v2/homebrew/core/docker-completion/manifests/23.
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/7a775fca9a093a32f979419cd63d5f18a71d79da2c67049f9982770006528144--docker-completion-23.0.5.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/docker-completion/blobs/sha256:
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/97a2136e928d9cb69ecb668c416d47404154580ee733e400e51eaed92ff44c2d--docker-completion--23.0.5.monterey.bottle.tar.gz
==> Pouring docker-completion--23.0.5.monterey.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/docker-completion/23.0.5: 9 files, 336.9KB
==> Running `brew cleanup docker-completion`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
~$ brew doctor
Your system is ready to brew.
~$ brew install --formula docker
==> Fetching docker
==> Downloading https://ghcr.io/v2/homebrew/core/docker/manifests/23.0.5
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/09ed2d31951f9b4a42c462c0b462854e522e7484b3bd4a5b9d38a15adae7b96b--docker-23.0.5.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/docker/blobs/sha256:aa59d361b28
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/18ce4586d11f86ec90608f72aa257171e43024404708955148dff253011d9a99--docker--23.0.5.monterey.bottle.tar.gz
Error: Cannot install docker because conflicting formulae are installed.
  docker-completion: because docker already includes these completion scripts

Please `brew unlink docker-completion` before continuing.

Unlinking removes a formula's symlinks from /usr/local. You can
link the formula again after the install finishes. You can --force this
install, but the build may fail or cause obscure side effects in the
resulting software.
~$ brew doctor
Your system is ready to brew.
~$ 

In contrast:

~$ brew doctor
Your system is ready to brew.
~$ brew install --cask docker
==> Caveats
If your CLI tools were symlinked to $HOME/.docker/bin your path should be modified to include:

  $HOME/.docker/bin

==> Downloading https://desktop.docker.com/mac/main/amd64/106363/Docker.dmg
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/a2fa53b312129a06f0f442d39dc52e4aa215dd8202dccd10ade7522d8fdd9584--Docker.dmg
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Backing App 'Docker.app' up to '/usr/local/Caskroom/docker/4.19.0,106363/Doc
==> Removing App '/Applications/Docker.app'
==> Purging files for version 4.19.0,106363 of Cask docker
Error: It seems there is already a Binary at '/usr/local/share/zsh/site-functions/_docker'.
~$ brew doctor
Your system is ready to brew.
~$ 

Doesn't recognize the fail was because of the conflict, even though https://formulae.brew.sh/cask/docker lists docker-completion as a conflict.

@osalbahr osalbahr mentioned this issue Apr 30, 2023
3 tasks
@osalbahr
Copy link
Contributor Author

I got the same ambiguous error message with cmake and unison. Could it might be an issue with how/when a --cask conflicting with a --formula is performed?

homebrew-cask$ brew install --formula cmake
Warning: cmake 3.26.3 is already installed and up-to-date.
To reinstall 3.26.3, run:
  brew reinstall cmake
homebrew-cask$ brew install --cask cmake
==> Downloading https://cmake.org/files/LatestRelease/cmake-3.26.3-macos-universal.dmg
Already downloaded: /Users/osos/Library/Caches/Homebrew/downloads/f966e43b4ccfe9d540531a0cc1b69d52c1943d660c45b8ae2da8374b25bc6041--cmake-3.26.3-macos-universal.dmg
==> Installing Cask cmake
==> Moving App 'CMake.app' to '/Applications/CMake.app'
==> Linking Binary 'cmake-gui' to '/usr/local/bin/cmake-gui'
==> Unlinking Binary '/usr/local/bin/cmake-gui'
==> Backing App 'CMake.app' up to '/usr/local/Caskroom/cmake/3.26.3/CMake.app'
==> Removing App '/Applications/CMake.app'
==> Purging files for version 3.26.3 of Cask cmake
Error: It seems there is already a Binary at '/usr/local/bin/cpack'.
homebrew-cask$
homebrew-cask$ brew install --formula unison
Warning: unison 2.53.3 is already installed and up-to-date.
To reinstall 2.53.3, run:
  brew reinstall unison
homebrew-cask$ brew install --cask unison
==> Downloading https://github.com/bcpierce00/unison/releases/download/v2.53.2/Unison-v2.53.2.ocaml-4.14.1.macos-10.15.app.tar.gz
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/52459213/18756ee3-5b52-460f-89ce-930a0988
#################################################################################################################################### 100.0%
==> Installing Cask unison
==> Moving App 'Unison.app' to '/Applications/Unison.app'
==> Backing App 'Unison.app' up to '/usr/local/Caskroom/unison/2.53.2,4.14.1/Unison.app'
==> Removing App '/Applications/Unison.app'
==> Purging files for version 2.53.2,4.14.1 of Cask unison
Error: It seems there is already a Binary at '/usr/local/bin/unison'.
homebrew-cask$ 

@osalbahr
Copy link
Contributor Author

Out of curiosity, why did you close this issue even though it hasn't been resolved yet?

@razvanazamfirei
Copy link
Member

Hi @osalbahr, I closed it because the original issue was related to you not being able to install both the docker formula and the docker cask since the two are not compatible. After a clean reinstall, you had access to the CLI tools in the docker cask. That aspected seemed to be resolved. Thank you again for following up with additional information and for your attempts to parse this out. It's very much appreciated!

In terms of checking for conflicts, the behavior you mentioned has already been noted in #12822. I've reopened this for now in case other maintainers want to chime in, but I don't have anything else to add on that.

@razvanazamfirei razvanazamfirei added the awaiting maintainer feedback Issue needs response from a maintainer. label Apr 30, 2023
@osalbahr
Copy link
Contributor Author

osalbahr commented May 1, 2023

Hi @razvanazamfirei, thank you for clarifying! Do you know if maintainers have a plan on how conflicts between a cask and a formula should be addressed? Or what issues make the check more complicated than it might seem? I’d be interested to read up more on it, and hopefully help with a fix.

I opened a PR (#146192) to add to the docker cask caveat, hopefully minimizing this issue for the meantime. Is there a way I can locally see how the output of installing the cask would look if the PR gets approved?

BrewTestBot pushed a commit to osalbahr/homebrew-cask that referenced this issue May 4, 2023
The added caveat should clarify how to add the CLI tools after installing the cask.

Fixes [Homebrew#46078 (comment)](Homebrew#146078 (comment))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
awaiting maintainer feedback Issue needs response from a maintainer. outdated
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants