podman: Error: Get ../podman.sock: connect: no such file or directory
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description I installed podman on my macOS (High Sierra 10.13.6) using homebrew.
brew cask install podman
And it says that the podman was successfully installed!
Updating Homebrew...
==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 471166 (delta 0), reused 2 (delta 0), pack-reused 471162
Receiving objects: 100% (471166/471166), 213.07 MiB | 718.00 KiB/s, done.
Resolving deltas: 100% (334004/334004), done.
Tapped 1 command and 3638 casks (3,753 files, 228.3MB).
==> Downloading https://github.com/containers/podman/releases/download/v2.0.3/podman-remote-release-darwin.zip
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/109145553/f709f680-cdc8-11ea-8c73-c6b5a9206b69?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'podman'.
==> Installing Cask podman
==> Linking Binary 'podman' to '/usr/local/bin/podman'.
šŗ podman was successfully installed!
But after I enter podman on the terminal, it gives me the following error
Error: Get http://d/v1.0.0/libpod../../../_ping: dial unix ///var/folders/m5/s6r4jc2n683grgxld0r1hgch0000gn/T/run--1/podman/podman.sock: connect: no such file or directory
Steps to reproduce the issue:
-
brew cask install podman
-
podman
Describe the results you received: Error: Get http://d/v1.0.0/libpod../../../_ping: dial unix ///var/folders/m5/s6r4jc2n683grgxld0r1hgch0000gn/T/runā1/podman/podman.sock: connect: no such file or directory
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
When I type āpodman versionā, it also shows the same error.
Error: Get http://d/v1.0.0/libpod../../../_ping: dial unix ///var/folders/m5/s6r4jc2n683grgxld0r1hgch0000gn/T/run--1/podman/podman.sock: connect: no such file or directory
Output of podman info --debug:
Same here
Error: Get http://d/v1.0.0/libpod../../../_ping: dial unix ///var/folders/m5/s6r4jc2n683grgxld0r1hgch0000gn/T/run--1/podman/podman.sock: connect: no such file or directory
Package info (e.g. output of rpm -q podman or apt list podman):
Additional environment details (AWS, VirtualBox, physical, etc.): Iām installing the podman on my Mac OS (High Sierra 10.13.6)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 8
- Comments: 21 (11 by maintainers)
This seems like a limiting factor in terms of the adoption of podman. I wanted to use podman on mac to avoid the docker socket but if Iām required to have a linux VM this is even worse than the docker socket issue for a simple client setup.
Iām currently writing a blog on this but here is the short version.l You will need a linux server somewhere running sshd. Using an ssh key right now is required, but there is a PR upstream to fix this.
On the server:
On the client.
This is from memory and in a rush. hopefully it helps until i can publish this thing.
hang tight ⦠stuff on the very near horizon!
The error from āpodman-remoteā is similar on all platforms. But on mac/win, the binary is renamed to just āpodmanā.
Only excuse is that the output matches the one from the docker client. Maybe with a slightly less āfriendlyā wording ?
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?Error: Get "http://d/v2.0.0/libpod../../../_ping": dial unix ///run/podman/podman.sock: connect: no such file or directoryIt also looks slightly different when running rootless, when compared to these āregularā (rootful?) socket locations. i.e. then it would look like
/run/user/1000/docker.sockand/run/user/1000/podman/podman.sockinstead.A friendly greeting could probably be added, but there still needs to be some documentation* on how to set up a VMā¦
Cannot connect to the Podman socket at unix:///run/podman/podman.sock. Is the podman service running?* the one you linked to doesnāt work with podman v2, only varlink
The podman.io documentation just assumes you know how to do it:
https://www.redhat.com/sysadmin/podman-clients-macos-windows
The ānew approachā for this I was working with, uses Vagrant do it:
https://www.vagrantup.com/intro
vagrant upvagrant ssh-configI was going to āwrapā it in a more user-friendly script (replacing the deprecated docker-machine and podman-machine), but that work isnāt completely finished yet. There is also this issue with VirtualBox not working on the new Mac CPU (M1)
https://boot2podman.github.io/2020/07/22/machine-replacement.html
The other ticket was about a Mac bundle, using Hypervisor.framework
https://developer.apple.com/documentation/hypervisor
Then you wouldnāt need Vagrant and Virtualbox, or set up the VM.
It would be more like a āPodman Desktopā, where it was integrated ?
FWIW, as a brand new user, I didnāt understand why podman3 wasnāt working on MacOS until I found this issue.
Iāll just paste the new āfriendlyā error message here for searchability.
Reading this issue I get that podman is Linux only. All that being said, assuming
/usr/local/bin/podmanknows it compiled for Mac or Windows shouldnāt it be possible to display a slightly more helpful error message?To elaborate further, itās simply not technically possible to do containers natively on OS X at the moment. The kernel features that containers rely on (most notably process namespacing) are simply not available on OS X, and Apple has shown no interest in adding them thus far. The model at this point for both us and Docker is a native OS X binary capable of remotely connecting to a server that actually launches containers (typically located on a VM, but can also be on a remote server as well). Docker does package things up quite neatly, but I assure you they are also doing Linux VMs for local development on OS X.
On Sun, Nov 22, 2020 at 3:32 PM Anders Bjƶrklund notifications@github.com wrote: