Skip to content

What is the path to the podman socket in the host #624

Answered by afbjorklund
iongion asked this question in Q&A
Discussion options

You must be logged in to vote

When starting "podman.yaml", it will print out the podman.sock location.

To run `podman` on the host (assumes podman-remote is installed):
$ export CONTAINER_HOST=unix:///home/anders/.lima/podman/sock/podman.sock
$ podman --remote ...

Normally it is under "sock/podman.sock", in the lima instance directory.

portForwards:
- guestSocket: "/run/user/{{.UID}}/podman/podman.sock"
  hostSocket: "{{.Dir}}/sock/podman.sock"

It is started with systemctl --user enable --now podman.socket in the VM.

https://github.com/containers/podman/blob/main/docs/tutorials/remote_client.md

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@afbjorklund
Comment options

Answer selected by iongion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants