-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
In MacOS, latest version(1.5.1) of podman can't pull images. #3882
Comments
@gaord curious if you were following any instructions for this? |
@baude not quite. Just new to podman from docker. Any ideas? |
the way that the mac client works is that it needs a vm running Linux and Podman to connect to ... you then, using a configuration file, can point to that VM and interact with it. |
The Mac client defaulting to a local endpoint sounds like a bug, though |
no it isnt ... but the error could be better |
Hi, do we have a workaround or a way to fix? |
@ashley-cui PTAL |
@rhatdan I think it is working correctly; the error message looks like it's telling the user that it's not connected to a remote host. I can see if I can try to edit the error message to have better information? |
@ashley-cui Please tell @gaord how to set it up, or point him to documentation on how to do it. |
@rhatdan Is it beneficial to add a documentation on where we are currently on the mac client? Since the explanation will be pretty long anyway, should we start something like a mac_client.md, or a mac section or remote_client.md, or some sort of blog post regarding where we are and how to use it? |
Here's a brief write up: @gaord Hi! So in order to use the the podman client on mac, currently, you have to have a linux machine running somewhere. It could be a vm or another physical machine. To connect using flags, you can use Your linux IP can be determined using It’s probably the best if you use --username root. To do you this you may need to edit your /etc/ssh/sshd_config in your linux machine: In order to avoid ‘logging in’ every time you run a podman command, you may need to edit your /etc/ssh/sshd_config in your linux machine as follows:
You may also need to scp ssh keys from your mac to your linux host (from Mac ~/.ssh/id.pub in /root/.ssh/authorized_keys) In order to connect, make sure your linux machine has podman installed on it, and run
Then, you can use podman as you usually do, with the podman-remote.conf file populated or use it with flags: |
A small addendum, but I would strongly recommend use SSH key authentication, as opposed to allowing passwordless root login - much safer |
@ashley-cui Lets make a mac_client.md |
Thanks all. that makes sense for me. -Ben |
Hi team Podman, Sorry for a question and bother. I got a same problem of issue above, so I read the discussions above and setup a Fedora28 VM which already installed Podman, then follow the instructions(https://podman.io/blogs/2019/01/16/podman-varlink.html) to setup socket activation of Podman. then I back to my MackOS to install the Podman client(followed the instructions in the newest mac_client.md which just updated in these days), but I got another error regarding
would you mind to let me know if there's something I missed for setup Podman and Podman client? |
I think you might need to use root for now. @jwhonce PTAL |
@jdjgya i believe you might be missing the varlink command itself which I'm not certain is supported on f28. Can you use f29 and install one of the varlink packages that provides /usr/bin/varlink. |
@jdjgya if that does not work with the latest podman and f29, please open a new issue and we'll help you out. |
You should really move to f30 since f29 is getting close to it's end of life. |
We talked about 'how' but not 'why'. Why we can't run podman on OSX without having a linux VM? Is there any plan to get it working without VM? |
The lack of a proper OCI-compliant container runtime makes launching containers on OS X impossible without a VM being involved. There's a large amount of additional work that will need to be done if that hurdle is overcome - porting things like fuse-overlayfs and Conmon will be major efforts all their own - but without the ability to launch containers, there's no point. |
Podman is a tool for running, building, manageing LINUX containers. Not MAC containers. In order to run a Linux Container you need a Linux kernel. On Windows they have added WSL to make people think that linux containers are running natively. But really under the covers they are just running a builtin VM. Bottom line, unless MAC decided to build and support OCI based containers with an OCI based image, then you need a VM. |
Personally I find this disappointing. MacOS is a primary dev environment in many organizations and podman is being advertised as a Having developer from only having to I strongly urge you guys review as IMO this is not a good product direction to continue. |
Docker requires the same VM, it is not doing anything with MAC Containers. There is not difference. From a usability point of view, Boot2Docker and DockerMachine is better. Although opensource teams are working on Boot2Podman and we hope to get better integration with CRC (Code Ready Containers) for OpenShift integration. We continue to work on MAC and Windows support and are always looking for contributors to help accelerate the movement. |
/kind bug
Description
In MacOS, latest version(1.5.1) of podman can't pull images.
Steps to reproduce the issue:
In MacOS console, run "brew cask instal podman"
do a pull to see the issue
Describe the results you received:
here is the result:
bogon:Downloads test$ podman pull quay.io/openshift-release-dev/ocp-release@sha256:c28afba66cc09233f7dfa49177423e124d939cf5b0cd60d71bbb918edb0ed739
Error: could not get runtime: dial unix /run/podman/io.podman: connect: no such file or directory
Describe the results you expected:
I can pull images by podman
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:The text was updated successfully, but these errors were encountered: