[][src]Trait testcontainers::core::Docker

pub trait Docker where
    Self: Sized
{ fn run<I: Image>(&self, image: I) -> Container<'_, Self, I>;
fn run_with_args<I: Image>(
        &self,
        image: I,
        run_args: RunArgs
    ) -> Container<'_, Self, I>;
fn logs(&self, id: &str) -> Logs;
fn ports(&self, id: &str) -> Ports;
fn rm(&self, id: &str);
fn stop(&self, id: &str);
fn start(&self, id: &str); }

Defines the minimum API required for interacting with the Docker daemon.

Required methods

fn run<I: Image>(&self, image: I) -> Container<'_, Self, I>

fn run_with_args<I: Image>(
    &self,
    image: I,
    run_args: RunArgs
) -> Container<'_, Self, I>

fn logs(&self, id: &str) -> Logs

fn ports(&self, id: &str) -> Ports

fn rm(&self, id: &str)

fn stop(&self, id: &str)

fn start(&self, id: &str)

Loading content...

Implementors

impl Docker for Cli[src]

Loading content...