public class DockerHost extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
address()
Get the Docker ip address or hostname.
|
URI |
bindURI()
Get the Docker rest bind uri.
|
static String |
defaultAddress() |
static int |
defaultPort() |
static String |
defaultUnixEndpoint() |
String |
dockerCertPath()
Get the path to certificate and key for connecting to Docker via HTTPS.
|
boolean |
equals(Object o) |
static DockerHost |
from(String endpoint,
String certPath)
Create a
DockerHost from an explicit address or uri. |
static DockerHost |
fromEnv()
Create a
DockerHost from DOCKER_HOST and DOCKER_PORT env vars. |
int |
hashCode() |
String |
host()
Get a Docker endpoint usable for instantiating a new DockerHost with
DockerHost.from(endpoint).
|
int |
port()
Get the Docker endpoint port.
|
String |
toString() |
URI |
uri()
Get the Docker rest uri.
|
public String host()
public URI uri()
public URI bindURI()
public int port()
public String address()
public String dockerCertPath()
public static DockerHost fromEnv()
DockerHost from DOCKER_HOST and DOCKER_PORT env vars.public static DockerHost from(String endpoint, String certPath)
DockerHost from an explicit address or uri.endpoint - The Docker endpoint.certPath - The certificate path.public static String defaultUnixEndpoint()
public static String defaultAddress()
public static int defaultPort()
Copyright © 2016. All rights reserved.