News for hackers. Stuff that matters.
Re:Podman: A tool for managing OCI containers and pods by SEJeff on Thursday September 02, 2021 @07:45AM (#28390870)
On macOS

brew install podman; podman machine init; podman machine start; podman run ...

Re:Podman: A tool for managing OCI containers and pods by b3n4kh on Thursday September 02, 2021 @08:25AM (#28391222)
It seems like podman machine is deprecated: https://www.redhat.com/sysadmin/replace-docker-podman-macos
Re:Podman: A tool for managing OCI containers and pods by gbraad on Thursday September 02, 2021 @09:34AM (#28391790)
Podman-machine was an external project that was derived from minishift and some of the images I made to allow fedora and Podman to be used. This worked, but was mostly a one man project by a community member

We have worked with the container team to introduce an actual solution, that also will hopefully soon introduce a new network stack. This we have been testing in CRC for some time.

Note: team lead on CRC, previously minisbift. Work closely with the container team. Red Hat employee

Re:Podman: A tool for managing OCI containers and pods by cpach on Thursday September 02, 2021 @12:28PM (#28394071)
There’s so much container innovation going on that I get dizzy just by hearing about it. Lots of interesting projects popping up all over the map.
Re:Podman: A tool for managing OCI containers and pods by afbjorklund on Thursday September 02, 2021 @12:30PM (#28394104)
Then you will be glad to hear that I was planning to continue the podman-machine project, but under a different name... https://boot2podman.github.io/2021/01/24/reboot-new-project....
Re:Podman: A tool for managing OCI containers and pods by scns on Thursday September 02, 2021 @12:39PM (#28394219)
Was or are? Looks interesting, especially the runs from RAM aspect.
Re:Podman: A tool for managing OCI containers and pods by afbjorklund on Thursday September 02, 2021 @01:26PM (#28394832)
It's a "work in progress", basically an updated version of the old projects that serve like a proof-of-concept if you can tolerate the old versions (docker 19.03 and podman 1.9.3) The runs from RAM is an integral part of the project, the new version will have better packaging - using squashfs mounts rather than copying them over to tmpfs like the old one did.
Re:Podman: A tool for managing OCI containers and pods by SEJeff on Thursday September 02, 2021 @08:31AM (#28391265)
This is from the guy that leads the container team at Redhat:

https://twitter.com/rhatdan/status/1433003250991706114?s=21

Re:Podman: A tool for managing OCI containers and pods by capableweb on Thursday September 02, 2021 @08:44AM (#28391374)
Your comment gave me the impression that Daniel Walsh made some refutation against that podman-machine is being deprecated, but the Tweet you link to say no such thing, unless it's hidden in some sub-tweet (Twitters UX is horrible to discover things).

Going straight to the source (https://github.com/boot2podman/machine), it says the following:

> DEPRECATED (with huge letters)

> Podman Machine is now deprecated. Users should try using Vagrant instead.

So one can safely assume that podman-machine is in fact getting deprecated.

Re:Podman: A tool for managing OCI containers and pods by SEJeff on Thursday September 02, 2021 @09:15AM (#28391639)
I'm not sure if it was you that downvoted me, but you are mistaken.

boot2podman/machine, what you linked, is not an official part of podman. It is a third party equivalent and not relevant. The official podman repository is https://github.com/containers/podman, and the machine bits are integrated and part of podman proper:

https://github.com/containers/podman/tree/main/cmd/podman/ma...

If it was you that downvoted my comment, please consider not doing that because you disagree. The comment was factually correct and made in good faith. You're equating a third party deprecated podman-machine with the integrated into upstream podman machine. We were not referring to the same thing whatsoever.

Hopefully this makes more sense to you now.

Re:Podman: A tool for managing OCI containers and pods by capableweb on Thursday September 02, 2021 @09:25AM (#28391713)
Thanks for clarifying! My mistake in confusing the two, hopefully one can understand how another can make the mistake though as one is named "podman machine" and the other "podman machine".

My main issue with your comment (https://news.ycombinator.com/item?id=28391265) still stands, you're linking a third-party source with the impression that that source said it's in fact not being deprecated, when there is no such text in that source.

I did not downvote you, but I can absolutely understand why someone would do that, since the tweet seemingly has nothing to do with the comment your original comment was replying to.

For what it's worth, complaining about downvotes is almost never worth it. Makes for boring reading and the people downvoting you won't read it anyways.

Re:Podman: A tool for managing OCI containers and pods by SEJeff on Thursday September 02, 2021 @10:14PM (#28399712)
I'm saying the source is saying this is what to use, which was confirmed by reading the source and seeing the "deprecated" version was not even related to the project whatsoever.

Dan is the guy that has been with the docker project through the redhat fork and to the creation of podman from the very beginning. If he says podman machine is what to use, it is not deprecated. Have you ever listened to Dan speak? He's very pragmatic about these things.

Being one of the authoritative decision makers, if he says to use it, it is not deprecated. A literal 1 minute perusal of the podman upstream source confirmed.

Re:Podman: A tool for managing OCI containers and pods by Aeolun on Thursday September 02, 2021 @07:58PM (#28398883)
> since the tweet seemingly has nothing to do with the comment your original comment was replying to

Saying the lead developer is recommending using machine right after someone claims it’s deprecated seems relevant?

Re:Podman: A tool for managing OCI containers and pods by afbjorklund on Friday September 03, 2021 @01:02PM (#28406709)
The comments were regarding two different projects, one is deprecated (old podman-machine) one is not (new podman machine)
Re:Podman: A tool for managing OCI containers and pods by _joel on Thursday September 02, 2021 @10:22AM (#28392404)
It's also in the documentation https://podman.io/getting-started/installation
Re:Podman: A tool for managing OCI containers and pods by afbjorklund on Thursday September 02, 2021 @01:23PM (#28394798)
I added some clarification (hopefully) to the README, it gets a bit confusing when terms like "Machine" and "CoreOS" get reused
Re:Podman: A tool for managing OCI containers and pods by voxic11 on Thursday September 02, 2021 @12:59PM (#28394485)
next your going to be complaining that its too easy to confuse docker-compose with docker compose :P
Re:Podman: A tool for managing OCI containers and pods by rjzzleep on Thursday September 02, 2021 @08:53AM (#28391451)
What you linked to is podman-machine. podman machine is not the same. The former was probably deprecated because podman machine is now part of podman itself.

https://github.com/containers/podman/tree/main/cmd/podman/ma...

Re:Podman: A tool for managing OCI containers and pods by rhatdan on Friday September 03, 2021 @06:30AM (#28402451)
podman-machine was a project disconnected from Podman. The podman project recently added a new command to podman `machine`.

The `podman machine` command downloads and runs VMs with the podman service enabled within them. It also configures the native podman to use ssh to connect to the podman within the VM to allow the allusion of native podman support on the host. This is the exact same thing that Docker desktop does.

We will contact the podman-machine developers to update their website to point out that `podman machine` is the way to go, to get a VM running podman on your host system.

Re:Podman: A tool for managing OCI containers and pods by rhatdan on Friday September 03, 2021 @06:33AM (#28402467)
This is what the the podman-machine github says under the DEPRECATED section:

` DEPRECATED:

Podman v3.3 now has a podman machine included, different from podman-machine

This is a new feature based on QEMU and CoreOS, unlike the old one (described here) which is based on Docker Machine and Boot2Docker, as was available in Docker Toolbox... `

Re:Podman: A tool for managing OCI containers and pods by afbjorklund on Friday September 03, 2021 @01:03PM (#28406729)
I updated the README based on feedback from here...

Once there is any documentation or blog post for the new podman machine feature, I will link directly to it

Re:Podman: A tool for managing OCI containers and pods by gbraad on Thursday September 02, 2021 @09:36AM (#28391811)
Boot2podman was a derived project from minishift and machine drivers. Was not maintained by the container team... but a community member.

Podman machine as mentioned is a new integrated solution.

Re:Podman: A tool for managing OCI containers and pods by afbjorklund on Thursday September 02, 2021 @12:29PM (#28394079)
I will "unlock" the deprecated boot2podman projects and add some more text about it to the README.
Re:Podman: A tool for managing OCI containers and pods by bazzargh on Thursday September 02, 2021 @08:25AM (#28391227)
hmm, I tried this yesterday, Catalina, fresh install of podman/qemu:

  ; podman machine start
  
  INFO[0000] waiting for clients...                       
  INFO[0000] listening tcp://0.0.0.0:7777                 
  INFO[0000] new connection from  to /var/folders/tv/ykgkkzr902n062tzjgbtwdc1bgt9y_/T/podman/qemu_podman-machine-default.sock 
  Waiting for VM ...
  qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
  
I hadn't dug into it because the docs for this feature are still missing, and I presumed it hasn't launched - I'd seen it in the demo https://podman.io/community/meeting/notes/2021-04-06/#podman...

So I took a look again:

  ; vim ~/.config/containers/podman/machine/qemu/podman-machine-default.json
  # added arguments to cmd, "-cpu", "host"
  # based on reading https://github.com/GNS3/gns3-server/issues/1639 for that error
  ; rm /var/folders/tv/ykgkkzr902n062tzjgbtwdc1bgt9y_/T/podman/qemu_podman-machine-default.sock
  # podman machine start will complain if you don't remove the
  # socket file after the crash above. `fuser` showed nothing
  # connected to it
  ; podman machine start
  
  INFO[0000] waiting for clients...                       
  INFO[0000] listening tcp://0.0.0.0:7777                 
  INFO[0000] new connection from  to /var/folders/tv/ykgkkzr902n062tzjgbtwdc1bgt9y_/T/podman/qemu_podman-machine-default.sock 
  Waiting for VM ...
  ; podman machine ls
  
  NAME                     VM TYPE     CREATED         LAST UP
  podman-machine-default\*  qemu        45 seconds ago  Currently running
  ; podman pull alpine
  
  Resolved "alpine" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
  Trying to pull docker.io/library/alpine:latest...
  Getting image source signatures
  Copying blob sha256:a0d0a0d46f8b52473982a3c466318f479767577551a53ffc9074c9fa7035982e
  Copying blob sha256:a0d0a0d46f8b52473982a3c466318f479767577551a53ffc9074c9fa7035982e
  Copying config sha256:14119a10abf4669e8cdbdff324a9f9605d99697215a0d21c360fe8dfa8471bab
  Writing manifest to image destination
  Storing signatures
  14119a10abf4669e8cdbdff324a9f9605d99697215a0d21c360fe8dfa8471bab
  ; podman run -it alpine sh
  
  / # 


Works!
Re:Podman: A tool for managing OCI containers and pods by cpach on Thursday September 02, 2021 @07:55AM (#28390961)
Interesting… Will podman automatically create and launch a Linux VM where the containers will live?
Re:Podman: A tool for managing OCI containers and pods by esamatti on Thursday September 02, 2021 @08:02AM (#28391021)
Seems like it

-------

Podman is a tool for running Linux containers. You can do this from a MacOS desktop as long as you have access to a linux box either running inside of a VM on the host, or available via the network. Podman includes a command, podman machine that automatically manages VM’s.

To start the Podman-managed VM:

podman machine init podman machine start

-------

from: https://podman.io/getting-started/installation

Re:Podman: A tool for managing OCI containers and pods by jhickok on Thursday September 02, 2021 @12:26PM (#28394049)
Seems to have some issues creating the temp directories for the VM in an automated fashion (at least with the Homebrew package). But it will work with some tinkering.