Struct docker_api::api::container::Container[][src]

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

Interface for accessing and manipulating Docker Container.

Api Reference

Implementations

Exports an interface exposing operations against a Container instance.

A getter for Container id

Api Reference

Inspect this Container.

Api Reference

Returns a stream of logs from a Container.

Api Reference

Delete this Container. Use delete to delete without options.

Api Reference

Delete this Container. Use remove to customize options.

Api Reference

Returns a top view of information about the container process. On Unix systems, this is done by running the ps command. This endpoint is not supported on Windows.

Api Reference

Attaches a TtyMultiplexer to the container.

The TtyMultiplexer 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

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

Get information about files in a container.

Trait Implementations

Formats the value using the given formatter. Read more

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.

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