Struct docker_api::api::container::Containers
source · pub struct Containers { /* private fields */ }
Expand description
Interface for Docker Containers.Container>
Implementations§
source§impl Containers
impl Containers
source§impl Containers
impl Containers
sourcepub async fn list(
&self,
opts: &ContainerListOpts
) -> Result<Vec<ContainerSummary>>
pub async fn list(
&self,
opts: &ContainerListOpts
) -> Result<Vec<ContainerSummary>>
List available Containers.
sourcepub async fn prune(
&self,
opts: &ContainerPruneOpts
) -> Result<ContainerPrune200Response>
pub async fn prune(
&self,
opts: &ContainerPruneOpts
) -> Result<ContainerPrune200Response>
Delete stopped/unused Containers.
sourcepub async fn create(&self, opts: &ContainerCreateOpts) -> Result<Container>
pub async fn create(&self, opts: &ContainerCreateOpts) -> Result<Container>
Create a container