Provides remote access to a Docker daemon.
More...
|
virtual void | Dispose (bool disposing) |
| Overridable Dispose method More...
|
|
Provides remote access to a Docker daemon.
◆ Dispose()
virtual void DockerSdk.DockerClient.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprotectedvirtual |
Overridable Dispose method
- Parameters
-
◆ StartAsync() [1/3]
static Task<DockerClient> DockerSdk.DockerClient.StartAsync |
( |
CancellationToken |
ct = default | ) |
|
|
static |
Creates a new Docker client and connects it to the local Docker daemon.
- Parameters
-
ct | A token used to cancel the operation. |
- Returns
- A Task that completes when the connection has been established.
- Exceptions
-
DockerVersionException | The API versions that the SDK supports don't overlap with the API versions that the daemon supports. |
Core.DockerApiException | An internal error occurred within the daemon. |
System.Net.Http.HttpRequestException | The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation, or timeout. |
◆ StartAsync() [2/3]
Creates a new Docker client and connects it to a Docker daemon.
- Parameters
-
options | Details on how to connect and how the client should behave. |
ct | A token used to cancel the operation. |
- Returns
- A Task that completes when the connection has been established.
- Exceptions
-
ArgumentNullException | options is null . |
DockerVersionException | The API versions that the SDK supports don't overlap with the API versions that the daemon supports. |
Core.DockerApiException | An internal error occurred within the daemon. |
System.Net.Http.HttpRequestException | The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation, or timeout. |
DaemonNotFoundException | There is no running Docker daemon at the specified URL. |
◆ StartAsync() [3/3]
static Task<DockerClient> DockerSdk.DockerClient.StartAsync |
( |
Uri |
daemonUrl, |
|
|
CancellationToken |
ct = default |
|
) |
| |
|
static |
Creates a new Docker client and connects it to a Docker daemon.
- Parameters
-
daemonUrl | The URL of the Docker daemon to connect to. |
ct | A token used to cancel the operation. |
- Returns
- A Task that completes when the connection has been established.
- Exceptions
-
DockerVersionException | The API versions that the SDK supports don't overlap with the API versions that the daemon supports. |
Core.DockerApiException | An internal error occurred within the daemon. |
System.Net.Http.HttpRequestException | The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation, or timeout. |
ArgumentException | The URL is null . |
◆ Subscribe()
IDisposable DockerSdk.DockerClient.Subscribe |
( |
IObserver< Event > |
observer | ) |
|
Subscribes to events from the Docker daemon.
- Parameters
-
observer | An object to observe the events. |
- Returns
- An IDisposable representing the subscription. Disposing this unsubscribes and releases resources.
◆ ApiVersion
Version DockerSdk.DockerClient.ApiVersion |
|
get |
Gets the version of the Docker API that will be used to communicate with the Docker daemon.
This will always be the highest version that both sides support.
◆ Containers
Provides access to functionality related to Docker containers.
◆ Images
Provides access to functionality related to Docker images.
◆ Networks
Provides access to functionality related to Docker networks.
◆ Registries
Provides access to functionality related to Docker registries.
The documentation for this class was generated from the following file: