iongion / container-desktop

Podman desktop companion
https://container-desktop.com/
MIT License
1.39k stars 36 forks source link

Fails to open on macOS (Apple Silicon) #162

Closed tubbo closed 3 weeks ago

tubbo commented 1 month ago

I tried to install Container Desktop on an Apple Silicon machine, but I got an alert saying "This application is damaged, you should move it to the trash" when I tried opening it from either the installed /Applications directory or the disk image itself.

iongion commented 1 month ago

Two things you should be aware

I just checked on my m2 mac

image
iongion commented 1 month ago

There is a guide here on how to run non-digitally signed apps https://github.com/iongion/container-desktop/blob/main/USAGE.md but I don't advise. Better for you would be to just clone the repo and build yourself your own dmg.

skull-squadron commented 1 month ago

xattr -dr com.apple.quarantine /Applications/Container\ Desktop.app

One problem solved, but it still doesn't do anything even after installing the podman batteries that weren't included.

"Connection skipped - please check the settings or install the requirements"

They should've vendored podman in the app because it doesn't Just Work™. PITA!

iongion commented 1 month ago

@skull-squadron I understand your frustration, but I cannot at this point, it is too much for a single person to handle. Too many operating systems, cpu architectures and bundling/deployment formats. A code signing certificate is not affordable for this project. You can always use other solutions that can offer you all you need.

riveryc commented 1 month ago

@iongion would you mind to share what should we do to make it work? I'm running into the same issue: please check the settings or install the requirements

But I have no where to check the error logs and don't even see any information, and it flashed back to this page. 😂 I don't know what is required to install...

iongion commented 1 month ago

It is in the USAGE.md Open a terminal and paste

xattr -d com.apple.quarantine /Applications/Container\ Desktop.app - This is to avoid the need for digital signature, sorry, not able to afford the subscription right now

As for requirements, on mac, depends on what you want, if you want both Podman and Docker, you have to install them.

  1. Install homebrew - See https://brew.sh/
  2. Podman - Go to podman page and download it, see here https://podman.io/docs/installation#macos (skip to 3 if you only want Docker)
  3. Docker - Best experience is to install docker command line wrappers from homebrew and then colima and you are done, no need for Docker Desktop

TLDR

brew install docker
brew install podman # Optional if you only want to Docker
brew install colima
colima start

See more about colima here https://github.com/abiosoft/colima After colima started, you can re-connect in Container Desktop and profit

I will soon write some guides for easy provisioning, automation of all these.

iongion commented 3 weeks ago

I have added tutorial for all major operating systems, I hope you find it useful https://container-desktop.com/#guide-macos