public class DefaultDockerCompose extends Object implements DockerCompose
| Modifier and Type | Field and Description |
|---|---|
static com.github.zafarkhaja.semver.Version |
VERSION_1_7_0 |
| Constructor and Description |
|---|
DefaultDockerCompose(DockerComposeExecutable rawExecutable,
DockerMachine dockerMachine) |
DefaultDockerCompose(DockerComposeFiles dockerComposeFiles,
DockerMachine dockerMachine,
ProjectName projectName) |
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
String |
config() |
void |
down() |
String |
exec(DockerComposeExecOption dockerComposeExecOption,
String containerName,
DockerComposeExecArgument dockerComposeExecArgument) |
Optional<String> |
id(Container container) |
void |
kill() |
void |
kill(Container container) |
Ports |
ports(String service) |
List<ContainerName> |
ps() |
void |
pull() |
void |
rm() |
String |
run(DockerComposeRunOption dockerComposeRunOption,
String containerName,
DockerComposeRunArgument dockerComposeRunArgument) |
List<String> |
services() |
void |
start(Container container) |
void |
stop(Container container) |
void |
up() |
void |
up(Container container) |
boolean |
writeLogs(String container,
OutputStream output)
Blocks until all logs collected from the container.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitversionpublic DefaultDockerCompose(DockerComposeFiles dockerComposeFiles, DockerMachine dockerMachine, ProjectName projectName)
public DefaultDockerCompose(DockerComposeExecutable rawExecutable, DockerMachine dockerMachine)
public void pull()
throws IOException,
InterruptedException
pull in interface DockerComposeIOExceptionInterruptedExceptionpublic void build()
throws IOException,
InterruptedException
build in interface DockerComposeIOExceptionInterruptedExceptionpublic void up()
throws IOException,
InterruptedException
up in interface DockerComposeIOExceptionInterruptedExceptionpublic void down()
throws IOException,
InterruptedException
down in interface DockerComposeIOExceptionInterruptedExceptionpublic void kill()
throws IOException,
InterruptedException
kill in interface DockerComposeIOExceptionInterruptedExceptionpublic void rm()
throws IOException,
InterruptedException
rm in interface DockerComposeIOExceptionInterruptedExceptionpublic void up(Container container) throws IOException, InterruptedException
up in interface DockerComposeIOExceptionInterruptedExceptionpublic void start(Container container) throws IOException, InterruptedException
start in interface DockerComposeIOExceptionInterruptedExceptionpublic void stop(Container container) throws IOException, InterruptedException
stop in interface DockerComposeIOExceptionInterruptedExceptionpublic void kill(Container container) throws IOException, InterruptedException
kill in interface DockerComposeIOExceptionInterruptedExceptionpublic String exec(DockerComposeExecOption dockerComposeExecOption, String containerName, DockerComposeExecArgument dockerComposeExecArgument) throws IOException, InterruptedException
exec in interface DockerComposeIOExceptionInterruptedExceptionpublic String run(DockerComposeRunOption dockerComposeRunOption, String containerName, DockerComposeRunArgument dockerComposeRunArgument) throws IOException, InterruptedException
run in interface DockerComposeIOExceptionInterruptedExceptionpublic List<ContainerName> ps() throws IOException, InterruptedException
ps in interface DockerComposeIOExceptionInterruptedExceptionpublic Optional<String> id(Container container) throws IOException, InterruptedException
id in interface DockerComposeIOExceptionInterruptedExceptionpublic String config() throws IOException, InterruptedException
config in interface DockerComposeIOExceptionInterruptedExceptionpublic List<String> services() throws IOException, InterruptedException
services in interface DockerComposeIOExceptionInterruptedExceptionpublic boolean writeLogs(String container, OutputStream output) throws IOException
writeLogs in interface DockerComposeIOExceptionpublic Ports ports(String service) throws IOException, InterruptedException
ports in interface DockerComposeIOExceptionInterruptedExceptionCopyright © 2022 Pivotal Software, Inc.. All rights reserved.