Skip to content
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

podman support please #15

Open
AntonioSun opened this issue Jan 1, 2024 · 1 comment
Open

podman support please #15

AntonioSun opened this issue Jan 1, 2024 · 1 comment

Comments

@AntonioSun
Copy link

podman is not support out of the box at the moment.

I'll see if I can make it work on my end...

@AntonioSun
Copy link
Author

AntonioSun commented Jan 1, 2024

The only changes I made to make it (kind of) work with podman under Mac are:

sudo ln -vsf podman /opt/homebrew/bin/docker
sudo sed -i '/docker volume create/s/ --name//' /usr/local/bin/pinata-ssh-forward

So, in order to support podman, the only changes need are:

  • detect if podman instead of docker is available (and set $DOCKER accordingly),
  • if so, instead of calling docker volume create --name "${VOLUME_NAME}", call $DOCKER volume create "${VOLUME_NAME}"

That's it.

As for Mac, unlike Docker, mounting any local volumes in Podman on macOS requires an additional step of sharing the folder with the Podman VM before they can be mounted into a container, yet pinata-ssh-forward need a working Podman VM to run. I tried

podman machine init, then called pinata-ssh-forward successful, then tried to call podman machine init -v ssh-agent:/ssh-agent again, but got:

$ podman machine start
Starting machine "podman-machine-default"
Waiting for VM ...
Error: qemu exited unexpectedly with exit code 1, stderr: qemu-system-aarch64: -virtfs local,path=ssh-agent,mount_tag=vol6,security_model=none: cannot initialize fsdev 'vol6': failed to open 'ssh-agent': No such file or directory

Hope there is a way to circumvent the chicken-egg dilemma somehow (like making the ssh-agent thing a local folder or something). thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant