public class Bootstrap extends Object
| Constructor and Description |
|---|
Bootstrap() |
| Modifier and Type | Method and Description |
|---|---|
static DockerClient |
bootstrapAndConnect(String machine)
Main entry-point which will bootstrap Docker and connect to the Docker daemon, always attempting to perform a
docker installation first.
|
static DockerClient |
bootstrapAndConnect(String machine,
boolean bypassInstallation)
Main entry-point which will bootstrap Docker and connect to the Docker daemon.
|
static void |
main(String[] a) |
public static DockerClient bootstrapAndConnect(String machine, boolean bypassInstallation) throws Exception
machine - On Mac and Windows, where the Docker container is on a virtual host, the name of the machine to
setup with docker-machine and the machine which has the daemon to connect to.bypassInstallation - whether or not docker installation should be attemptedExceptionpublic static DockerClient bootstrapAndConnect(String machine) throws Exception
machine - On Mac and Windows, where the Docker container is on a virtual host, the name of the machine to
setup with docker-machine and the machine which has the daemon to connect to.ExceptionCopyright © 2016. All rights reserved.