pub struct Container<'docker> { /* private fields */ }
Expand description

Interface for accessing and manipulating a docker container

Api Reference

Implementations

Exports an interface exposing operations against a container instance

a getter for the container id

Inspects the current docker container instance’s details

Api Reference

Returns a top view of information about the container process

Api Reference

Returns a stream of logs emitted but the container instance

Api Reference

Attaches a Multiplexer to the container.

The Multiplexer implements Stream for returning Stdout and Stderr chunks. It also implements [AsyncWrite] for writing to Stdin.

The multiplexer can be split into its read and write halves with the split method

Api Reference

Returns a set of changes made to the container instance

Api Reference

Exports the current docker container into a tarball

Api Reference

Returns a stream of stats specific to this container instance

Api Reference

Start the container instance

Api Reference

Stop the container instance

Api Reference

Restart the container instance

Api Reference

Kill the container instance

Api Reference

Rename the container instance

Api Reference

Pause the container instance

Api Reference

Unpause the container instance

Api Reference

Wait until the container stops

Api Reference

Delete the container instance

Use remove instead to use the force/v options.

Api Reference

Delete the container instance (todo: force/v)

Api Reference

Execute a command in this container

Api Reference

Copy a file/folder from the container. The resulting stream is a tarball of the extracted files.

If path is not an absolute path, it is relative to the container’s root directory. The resource specified by path must exist. To assert that the resource is expected to be a directory, path should end in / or /. (assuming a path separator of /). If path ends in /. then this indicates that only the contents of the path directory should be copied. A symlink is always resolved to its target.

Api Reference

Copy a byte slice as file into (see bytes) the container.

The file will be copied at the given location (see path) and will be owned by root with access mask 644.

Api Reference

Copy a tarball (see body) to the container.

The tarball will be copied to the container and extracted at the given location (see path).

Api Reference

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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more