Skip to content

WaitForMessageInLogs is not working with Podman #329

@alx77

Description

@alx77

WaitForMessageInLogs uses --tail=all parameter which is not compatible with Podman's version of docker on Mac and returns

Error: invalid argument "all" for "--tail" flag: strconv.ParseInt: parsing "all": invalid syntax

as a workaround I used bash script

#!/bin/bash

# Docker wrapper for Podman compatibility
# Replaces --tail=all with --tail=-1

# Original command path
REAL_DOCKER="/usr/local/bin/docker"

fixed_args=()

for arg in "$@"; do
    if [[ "$arg" == "--tail=all" ]]; then
        fixed_args+=("--tail=-1")
    else
        fixed_args+=("$arg")
    fi
done

exec "$REAL_DOCKER" "${fixed_args[@]}"

but more natural should be using numLines = -1 parameter from ClientStream.cs:16 in Podman's case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions