diff --git a/distrobox-create b/distrobox-create index e3dee39d76..18391fcfea 100755 --- a/distrobox-create +++ b/distrobox-create @@ -315,7 +315,7 @@ generate_command() { # These flags are not supported by docker, so we use them only if our # container manager is podman. - if [ "${container_manager#*podman*}" ]; then + if [ -z "${container_manager#*podman*}" ]; then result_command="${result_command} --userns keep-id --ulimit host diff --git a/distrobox-enter b/distrobox-enter index 43c87c60c5..0340a45f1b 100755 --- a/distrobox-enter +++ b/distrobox-enter @@ -134,7 +134,7 @@ fi # # This is not necessary on docker as it is already handled # in this way. -if [ "${container_manager#*podman*}" ] && +if [ -z "${container_manager#*podman*}" ] && [ -S "/run/user/$(id -ru)/podman/podman.sock" ] && systemctl --user status podman.socket >/dev/null; then