Universal BlueUB
Universal Blue3y ago
23 replies
bsherman

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:
systemctl --user enable --now podman.socket
# in .bashrc export DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock
# so it's there
# i have moby-engine installed, but disabled, verified socket and service are not running so shouldn't be a problem, but useful for testing

in the host terminal:
$ docker info
Client:
 Version:    24.0.5
 Context:    default
 Debug Mode: false

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 1
 Server Version: 4.7.0
---snip---

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

$ sudo ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/docker
$ echo $DOCKER_HOST
unix:///run/user/10000/podman/podman.sock
$ ls -laZ /run/user/10000/podman/podman.sock
srw-rw----. 1 benjamin benjamin unconfined_u:object_r:user_tmp_t:s0 0 Oct  2 14:13 /run/user/10000/podman/podman.sock
$ docker info
docker info
Client:
 Version:    24.0.5
 Context:    default
 Debug Mode: false

Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info
Was this page helpful?