News for hackers. Stuff that matters.
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by drzaiusx11 on Friday November 03, 2023 @10:41PM (#38137630)
After docker desktop became unusable, I jumped to colima and never looked back. I still use the docker runtime in it (the non-proprietary part) but it also supports containerd. On Mac it's just a "brew install colima" and then "colima start"

I also install the compose and ecr credentials plug-ins (since I use ecr for my container registry.) It has the full functionality of docker desktop minus the UI, which I never used anyways.

https://github.com/abiosoft/colima

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by mplanchard on Friday November 03, 2023 @11:02PM (#38137746)
We tried to use podman at work (via nix) and ran into all kinds of confusing issues, especially in regards to docker in docker and CI builds. Swapped to using colima (again via nix) for the mac folks and regular docker engine for linux, and things have been much smoother. Definitely recommended if your podman setup is as difficult as ours was.
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by drzaiusx11 on Friday November 03, 2023 @11:15PM (#38137822)
We also attempted to move to Podman, but it just wasn't ready at the time. Since colima works well for our use case (devs with MacBooks), we haven't had a compelling reason to try Podman again
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by tecoholic on Saturday November 04, 2023 @12:49AM (#38138242)
Thanks for sharing this. I got a new M2 mac and installed Podman as I didn’t want the Docker Desktop as well. But ran into multiple issues and gave up and have been begrudgingly putting up with Docker Desktop.

My main complaints are: * the builds fail randomly * containers don’t stop when I run docker compose stop from CLI

So, I have to restart Docker Desktop a couple of times to reset everything. Does running the docker runtime with colima also gets into these issues?

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by thanksgiving on Saturday November 04, 2023 @02:57AM (#38138761)
Please share this experience and what went wrong with the postman team. It is the only way things can improve.

You don’t have to solve the problem. Just state your problem. If you need inspiration, here is an example: https://github.com/containers/podman-desktop/issues/868

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by misnome on Saturday November 04, 2023 @05:12AM (#38139305)
I switched to Rancher Desktop which IIRC uses the same engine and haven’t had any compatibility issues with it.
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by elbear on Saturday November 04, 2023 @02:05AM (#38138595)
What is the compose plugin? I don't see a reference to it on the github page
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by drzaiusx11 on Saturday November 04, 2023 @02:37PM (#38143883)
"docker compose" is a golang rewrite of the old standalone "docker-compose" python script. [1]

To install it's simply:

$ mkdir -p ~/.docker/cli-plugins

$ curl -SL https://github.com/docker/compose/releases/download/v2.23.0/... -o ~/.docker/cli-plugins/docker-compose

1. https://docs.docker.com/compose/install/linux

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by the-alchemist on Saturday November 04, 2023 @02:45PM (#38143945)
It's usually not referring to as a plugin, but as a standalone utility, i.e., `docker-compose` not `docker compose`.

If you put the binary in that magic Docker plugins directory, it'll treat the binary as a plugin and let you do `docker compose`.

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by drzaiusx11 on Saturday November 04, 2023 @07:50PM (#38146483)
Note that these are two different implementations, the standalone docker-compose has different cli arguments and is deprecated for the plugin (which is also a binary executable as you pointed out)
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by aequitas on Saturday November 04, 2023 @03:42AM (#38138959)
I've been using Colima for the past few months now instead of Docker for Mac and it's running great. Only issue I experience is that there is sometimes a delay after saving before files are synced to the container (using volumes), so when you run a test directly after saving it will still use the old file, or even worse, files that are still in transit, so you have to run your test again a few seconds later.

Been using Orbstack now for a few days and it seems to not have the same file syncing issue, and is faster in every other regard compared to Docker for Mac or Colima.

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by drzaiusx11 on Sunday November 05, 2023 @08:56AM (#38151133)
I haven't experienced any file write delays, have you filed a ticket against the project?

My guess is you're talking about an in-container write with a host system read.

My CI pipelines do this many times a day for code coverage and test results outputs. Those files are tiny though, so I wonder if it has to do with larger file sizes, or perhaps something external to your configuration like samba mounts that isn't playing well with qemus virtual network interface.

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by gigatexal on Saturday November 04, 2023 @04:09AM (#38139042)
I moved from the Mac platform for all the hoops you have to run though to run containers. On Linux I can do it without a VM. (I also hated window management — hello Sway — and the hardware is cheaper).

I’ve moved from Docker to podman as well on Linux. Love it.

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by magic_hamster on Saturday November 04, 2023 @05:20AM (#38139343)
Isn't rosetta a sort of middle ground with pretty good performance?
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by thfuran on Saturday November 04, 2023 @05:21AM (#38139351)
Docker on Mac runs a Linux VM to put containers in. Rosetta doesn't get around that.
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by kwkelly on Saturday November 04, 2023 @06:11AM (#38139599)
Notable too that the VM it runs on Mac comes with qemu user mode emulation and uses binfmt_misc to run binaries for different architectures so obviates the need for Rosetta.

Edit: to try this out compile a “hello world” binary to say arm64 and riscv64 and amd64 and run it all in the same container (be sure to statically link)

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by drzaiusx11 on Saturday November 04, 2023 @08:17PM (#38146639)
Knew it used qemu but didn't know about binfmt_misc. Very cool. I guess that explains why my coworkers with m1 laptops can run our amd64 containers just fine without changes.
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by drzaiusx11 on Sunday November 05, 2023 @09:11AM (#38151255)
Iirc Docker Desktop uses a proprietary VM now, Colima and Podman Desktop use qemu, and I'm not sure about Orbstack (which has come up several times as a lighter weight alternative within this thread.)
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by tacker2000 on Saturday November 04, 2023 @05:31AM (#38139401)
I tried to use colima instead of Docker Desktop several months ago on my Mac, but I ran into several difficult issues (i think relating to folder mounts) and gave up.
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by tough on Saturday November 04, 2023 @06:38AM (#38139744)
orbstack was nice
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by drzaiusx11 on Saturday November 04, 2023 @10:44AM (#38141460)
I've been heavily using bind mounts and volumes in colima so it's likely fixed. I DID encounter bind mount issues in podman, but that was several months ago and might also be resolved. (Edit:typos)
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by ShellfishMeme on Saturday November 04, 2023 @01:36PM (#38143287)
For MacOS I can really recommend https://orbstack.dev

It integrates very nicely, has very low CPU idle usage and also lets you quickly spawn VMs with bidirectional file sharing set up.

Since I switched I haven't looked back.

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by drzaiusx11 on Sunday November 05, 2023 @09:04AM (#38151199)
"no more complicated VMs" -orbstack

Curious how this works without a VM, or have they created some sort of linux "shim", a la WSL1.x?

If it's something like WSL1.x it means you're not actually "running linux", which may have subtle repercussions like differences in threading etc since it's really a Darwin system wearing a Linux suit.

That said if you're writing a CRUD app in python, that probably won't matter to you so it's still worth the tradeoff.

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by quinncom on Monday November 06, 2023 @09:51PM (#38172590)
“OrbStack uses a lightweight Linux virtual machine with a shared kernel to minimize overhead and save resources, similar to WSL 2 (Windows Subsystem for Linux). This flexible architecture comes with many advantages such as high efficiency, low resource usage, seamless integration with macOS, and more.”

https://docs.orbstack.dev/architecture

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by drzaiusx11 on Sunday November 12, 2023 @11:17PM (#38246843)
Seems they're maintaining an unpublished fork of the Linux kernel "linux-macvirt" to achieve this. Apparently you have to contact them directly for a copy of the code[1]

https://github.com/orbstack/linux-macvirt