Closed SistachReinoso closed 4 months ago
It should use $XDG_RUNTIME_DIR
Without systemd, it could be anything.
Do you think is normal that duality of default values?
For resolve the problem naw I use:
...
--env CONTAINER_HOST=/var/run/podman.sock \
--volume "$container_sock:/var/run/podman.sock" \
...
It is three values, if you include the usual (systemd) value of /run/user/<uid>
The root value is /run/podman/podman.sock, with a subdirectory
Sorry, my answer not work propely.
How defining $XDG_RUNTIME_DIR
?
Naw I use:
--volume "$container_sock:/tmp/podman-run-$(shell id -u)/podman/podman.sock" \
And when I want to use podman I execute:
mkdir -p "$HOME/rundir/libpod"
podman-remote system connection add socket unix:///tmp/podman-run-1000/podman/podman.sock
Does it actually make sense to have more than one default socket?
How defining
$XDG_RUNTIME_DIR
?
--env XDG_RUNTIME_DIR
(or CONTAINER_HOST
, as shown)
A friendly reminder that this issue had no activity for 30 days.
Can you retest with the latest podman?
Issue Description
If you do not configure anything, the
podman-remote
command expects to have two sockets available./tmp/podman-run-${USER_ID}/podman/podman.sock
${USER_HOME}/rundir/podman/podman.sock
This problem arose when trying to make a container with access to the host's podman
One solution is making a config: Without config:
Steps to reproduce the issue
With
Makefile
And
Containerfile
Steps:
make build
make run
This works correctly, but if you remove one of the socket volumes it stops working
With two sockets:
Without
/tmp/podman-run-${UID}/podman/podman.sock
Without
/home/${USERNAME}/rundir/podman/podman.sock
Describe the results you received
Currently you need to configure both sockets, otherwise it fails without adding configuration.
Describe the results you expected
Without config I want to be able to mount a single socket and have podman-remote work
podman info output
Podman in a container
Yes
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting