Struct docker_api::api::container::Container [−][src]
pub struct Container<'docker> { /* fields omitted */ }
Expand description
Interface for accessing and manipulating Docker Container.
Implementations
Inspect this Container.
Returns a stream of logs from a Container.
Delete this Container.
Use delete
to delete without options.
Delete this Container.
Use remove
to customize options.
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.
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
Returns a set of changes made to the container instance.
Exports the current docker container into a tarball.
Returns a stream of stats specific to this container instance.
Start the container instance.
Stop the container instance.
Restart the container instance.
Kill the container instance.
Rename the container instance.
Pause the container instance.
Unpause the container instance.
Wait until the container stops.
Execute a command in this container.
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.
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.
Copy a tarball (see body
) to the container.
The tarball will be copied to the container and extracted at the given location (see path
).
Trait Implementations
Auto Trait Implementations
impl<'docker> !RefUnwindSafe for Container<'docker>
impl<'docker> !UnwindSafe for Container<'docker>
Blanket Implementations
Mutably borrows from an owned value. Read more
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