Skip to main content

container_logs_command

Function container_logs_command 

Source
pub fn container_logs_command(
    runtime: ContainerRuntime,
    container_id: &str,
    tail: usize,
) -> String
Expand description

Build the <runtime> logs --tail <n> <id> command. The --tail cap is enforced server-side so the SSH stream stays bounded even on a noisy container.