oh boy i just hit a new fun issue maybe
oh boy, i just hit a new fun issue... maybe @akdev has seen?
Here's my setup:
On host F38:
in the host terminal:
this is as expected, because docker respects the
DOCKER_HOST
var and uses podman socket as it's server
but...
distrobox enter fedora
into a stock fedora 38 distrobox
11 Replies
that's already a wall of text so i'm threading it
]bsherman: I have done this many times
[2:42 PM]bsherman: i am confused why it's not working now
[2:46 PM]bsherman: an issue with distrobox-host-exec maybe
Looks like distrobox-host-exec doesn’t forward the environment
in general? i'm just getting to pulling that source up
You could use the
—remote
flag perhaps?i would SWEAR this has worked many times
hmmm
i wonder if maybe Gnome / GDM was setting my environment globally?
I’ve never used distrobox for anything meaningful unfortunately so not sure 😄
podman —remote
allows you to specify the url in the command line though might be a workaround
I don’t think so but you could check the environment of those systemd unitsi'm tinkering with sway/sericea using sddm-wayland... so... i've already noticed some other minor differences with environment
this is almost certainly the problem... I feel a bit silly now
yes,
distrobox-host-exec env
demonstrates your point quite wellMaybe a hack you could do:
distrobox-host-exec bash -c 'CONTAINER_HOST=/the/stuff podman'
huh, this is odd, but i looked at the change history for host-spawn and distrobox-host-exec and i don't see anything obviously related to this
so i'm wondering if i'm crazy
but i'll try your suggestion, that should work
it works
oh! there is a change which isn't "ancient" that seems related
https://github.com/1player/host-spawn/commit/8de2b62ee4e362e0912dd701c00baf5fda098ecd
host-spawn --env DOCKER_HOST docker info
DOES work
so before host-spawn 1.4.1 which showed up in distrobox in March... what I remember would have been true...
so maybe i'm not crazy, i just noticed for the first time today
oh! actually even later than March... because Jun 17 is when luca released distrobox 1.5.0 which added host-spawn version 1.4.1
and Fedora may have updated later?
yeah, looks like end of June
i think i'm going to need to patch this