Struct docker_api::docker::Docker[][src]

pub struct Docker { /* fields omitted */ }
Expand description

Entrypoint interface for communicating with docker daemon

Implementations

Api Reference

Returns the version of Docker that is running and various information about the system that Docker is running on.

Api Reference

Returns system information about Docker instance that is running

Api Reference

This is a dummy endpoint you can use to test if the server is accessible

Api Reference

Returns a stream of Docker events

Api Reference

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 is unix, otherwise returns an Error
  • tcp://
  • http://

To create a Docker instance utilizing TLS use explicit Docker::tls constructor (this requires tls feature enabled).

This is supported on Unix only.

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”.

This is supported on crate feature tls only.

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.

Returns an error if the provided host will fail to parse as URL or reading the certificate files will fail.

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 images

Exports an interface for interacting with Docker containers

Exports an interface for interacting with Docker networks

Exports an interface for interacting with Docker volumes

This is supported on crate feature swarm only.

Exports an interface for interacting with Docker services.

This is supported on crate feature swarm only.

Exports an interface for interacting with Docker configs.

This is supported on crate feature swarm only.

Exports an interface for interacting with Docker tasks.

This is supported on crate feature swarm only.

Exports an interface for interacting with Docker secrets.

This is supported on crate feature swarm only.

Exports an interface for interacting with Docker swarm.

This is supported on crate feature swarm only.

Exports an interface for interacting with Docker nodes.

This is supported on crate feature swarm only.

Exports an interface for interacting with Docker plugins.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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