diff --git a/distrobox-enter b/distrobox-enter index adc552a523..ba70f06a14 100755 --- a/distrobox-enter +++ b/distrobox-enter @@ -92,7 +92,7 @@ fi # prints the podman command to enter the distrobox container generate_command() { # If the container is not already running, we need to start if first - if ! podman ps | grep -q "${container_name}"; then + if ! podman ps | grep -q "${container_name}\$"; then # if container is not running, start it first if ! podman start "${container_name}" >/dev/null; then