pub struct Cli { /* private fields */ }
๐Deprecated since 0.2.1: Testcontainers is no longer using microcrates, please upgrade to testcontainers version 0.8
Expand description
Implementation of the Docker client API using the docker cli.
This (fairly naive) implementation of the Docker client API simply creates Command
s to the docker
CLI. It thereby assumes that the docker
CLI is installed and that it is in the PATH of the current execution environment.
Trait Implementationsยง
Sourceยงimpl Docker for Cli
impl Docker for Cli
Sourceยงfn run<I: Image>(&self, image: I) -> Container<'_, Cli, I>
fn run<I: Image>(&self, image: I) -> Container<'_, Cli, I>
๐Deprecated since 0.3.1: Testcontainers is no longer using microcrates, please upgrade to testcontainers version 0.8
Sourceยงfn logs(&self, id: &str) -> Logs
fn logs(&self, id: &str) -> Logs
๐Deprecated since 0.3.1: Testcontainers is no longer using microcrates, please upgrade to testcontainers version 0.8
Sourceยงfn ports(&self, id: &str) -> Ports
fn ports(&self, id: &str) -> Ports
๐Deprecated since 0.3.1: Testcontainers is no longer using microcrates, please upgrade to testcontainers version 0.8
Auto Trait Implementationsยง
impl !Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnwindSafe for Cli
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more