diff --git a/distrobox-enter b/distrobox-enter index c364bc6c0b..9f59dd20a4 100755 --- a/distrobox-enter +++ b/distrobox-enter @@ -134,7 +134,8 @@ fi # # This is not necessary on docker as it is already handled # in this way. -if [ "${container_manager}" = "podman" ] && [ -S "/run/user/$(id -ru)/podman/podman.sock" ] && +if [ "${container_manager}" = "podman" ] && + [ -S "/run/user/$(id -ru)/podman/podman.sock" ] && systemctl --user status podman.socket >/dev/null; then container_manager="${container_manager} --remote"