pub struct Images { /* private fields */ }
Expand description
Interface for Docker Images.Image>
Implementations
sourceimpl Images
impl Images
sourcepub async fn list(&self, opts: &ImageListOpts) -> Result<Vec<ImageInfo>>
pub async fn list(&self, opts: &ImageListOpts) -> Result<Vec<ImageInfo>>
List available Images.
sourcepub async fn prune(&self, opts: &ImagePruneOpts) -> Result<ImagesPruneInfo>
pub async fn prune(&self, opts: &ImagePruneOpts) -> Result<ImagesPruneInfo>
Delete stopped/unused Images.
sourcepub fn build<'docker>(
&'docker self,
opts: &BuildOpts
) -> impl Stream<Item = Result<ImageBuildChunk>> + Unpin + 'docker
pub fn build<'docker>(
&'docker self,
opts: &BuildOpts
) -> impl Stream<Item = Result<ImageBuildChunk>> + Unpin + 'docker
Builds a new image build by reading a Dockerfile in a target directory.
sourcepub async fn search<T>(&self, term: T) -> Result<Vec<SearchResult>> where
T: AsRef<str>,
pub async fn search<T>(&self, term: T) -> Result<Vec<SearchResult>> where
T: AsRef<str>,
Search for docker images by term.
sourcepub fn pull<'docker>(
&'docker self,
opts: &PullOpts
) -> impl Stream<Item = Result<ImageBuildChunk>> + Unpin + 'docker
pub fn pull<'docker>(
&'docker self,
opts: &PullOpts
) -> impl Stream<Item = Result<ImageBuildChunk>> + Unpin + 'docker
Pull and create a new docker images from an existing image.
sourcepub fn export<'docker>(
&'docker self,
names: Vec<&str>
) -> impl Stream<Item = Result<Vec<u8>>> + 'docker
pub fn export<'docker>(
&'docker self,
names: Vec<&str>
) -> impl Stream<Item = Result<Vec<u8>>> + 'docker
Exports a collection of named images, either by name, name:tag, or image id, into a tarball.
sourcepub fn import<'docker, R>(
&'docker self,
tarball: R
) -> impl Stream<Item = Result<ImageBuildChunk>> + Unpin + 'docker where
R: Read + Send + 'docker,
pub fn import<'docker, R>(
&'docker self,
tarball: R
) -> impl Stream<Item = Result<ImageBuildChunk>> + Unpin + 'docker where
R: Read + Send + 'docker,
Imports an image or set of images from a given tarball source. Source can be uncompressed on compressed via gzip, bzip2 or xz.
sourcepub async fn push(
&self,
name: impl Into<String>,
opts: &ImagePushOpts
) -> Result<()>
pub async fn push(
&self,
name: impl Into<String>,
opts: &ImagePushOpts
) -> Result<()>
Push an image to registry.
pub async fn clear_cache(&self, opts: &ClearCacheOpts) -> Result<ClearCacheInfo>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Images
impl Send for Images
impl Sync for Images
impl Unpin for Images
impl !UnwindSafe for Images
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more