Struct docker_api::docker::Docker [−][src]
pub struct Docker { /* fields omitted */ }Expand description
Entrypoint interface for communicating with docker daemon
Implementations
Creates a new Docker instance by automatically choosing appropriate connection type based
on provided uri.
Supported schemes are:
unix://with featureunix-socketenabled, otherwise returns an Errortcp://http://
To create a Docker instance utilizing TLS use explicit Docker::tls constructor.
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:// or https:// schemes,
also known as authority part.
cert_path specifies the base path in the filesystem containing a certificate (cert.pem)
and a key (key.pem) that will be used by the client. If verify is true a CA file will be
added (ca.pem) to the connector.
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.
Exports an interface for interacting with docker containers
Exports an interface for interacting with docker services
Returns version information associated with the docker daemon
Returns a simple ping response indicating the docker daemon is accessible
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Dockerimpl !UnwindSafe for DockerBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more