Struct shiplift::Containers [] [src]

pub struct Containers<'a> {
    // some fields omitted
}

Interface for docker containers

Methods

impl<'a> Containers<'a>
[src]

fn new(docker: &'a mut Docker) -> Containers<'a>

Exports an interface for interacting with docker containers

fn list(self) -> Result<Vec<ContainerRep>>

Lists the container instances on the docker host

fn get(&'a mut self, name: &'a str) -> Container

Returns a reference to a set of operations available to a specific container instance

fn create(&'a mut self, image: &'a str) -> ContainerBuilder

Returns a builder interface for creating a new container instance