Module generic

Module generic 

Source
Expand description

Generic Docker command for executing any Docker CLI command.

This module provides an escape hatch for running arbitrary Docker commands, including plugin commands, experimental features, or commands not yet implemented in this library.

§Example

use docker_wrapper::{DockerCommand, GenericCommand};

// Run a plugin command
let output = GenericCommand::new("scan")
    .arg("alpine:latest")
    .execute()
    .await?;

println!("{}", output.stdout);

// Run an experimental command
let output = GenericCommand::new("debug")
    .args(["container-id", "--shell", "bash"])
    .execute()
    .await?;

Structs§

GenericCommand
Generic Docker command for executing any Docker CLI command.