Struct buildah_rs::container::Container[][src]

pub struct Container { /* fields omitted */ }
Expand description

Instance of a Buildah container. Removed on drop.

Implementations

Creates a new working container, either from scratch or using a specified image as a starting point.

Ideally this would be impl<T: Into<Image>> TryFrom<T> for Container {...}. However, core Rust includes the blanket implementation impl<T, U> TryFrom<U> for T where U: Into<T>. This causes a name conflict, and hence this workaround is necessary.

Into generics must be Debug for instrumentation.

Typed implementation of [config] method…

Typed implementation of [config] method…

Typed implementation of [config] method…

Typed implementation of [config] method…

Copies the contents of a file, URL, or directory into container’s working directory. TODO: support more variations. TODO: try_copy

AsRef generics must be Debug for instrumentation.

Run a command inside of the container.

Mount working container’s root filesystem. Unprivileged users must run with buildah unshare.

Create an image from a working container. TODO: support more variations.

Into generics must be Debug for instrumentation.

Trait Implementations

Formats the value using the given formatter. Read more

Removes working container.

Executes the destructor for this type. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.