Struct docker_api::docker::Docker [−][src]
pub struct Docker { /* fields omitted */ }
Expand description
Entrypoint interface for communicating with docker daemon
Implementations
Returns the version of Docker that is running and various information about the system that Docker is running on.
Returns system information about Docker instance that is running
This is a dummy endpoint you can use to test if the server is accessible
Returns a stream of Docker events
Returns data usage of this Docker instance
Creates a new Docker instance by automatically choosing appropriate connection type based
on provided uri
.
Supported schemes are:
unix://
only works when build target isunix
, otherwise returns an Errortcp://
http://
To create a Docker instance utilizing TLS use explicit Docker::tls
constructor (this requires tls
feature enabled).
Creates a new docker instance for a docker host listening on a given Unix socket.
socket_path
is the part of URI that comes after the unix://
. For example a URI unix:///run/docker.sock
has a
socket_path
== “/run/docker.sock”.
Creates a new docker instance for a docker host listening on a given TCP socket host
.
host
is the part of URI that comes after tcp://
or http://
schemes, also known as
authority part.
TLS is supported with feature tls
enabled through Docker::tls constructor.
Returns an error if the provided host will fail to parse as URL.
Exports an interface for interacting with Docker containers
Exports an interface for interacting with Docker networks
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Docker
impl !UnwindSafe for Docker
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more