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, wait
version
public DefaultDockerCompose(DockerComposeFiles dockerComposeFiles, DockerMachine dockerMachine, ProjectName projectName)
public DefaultDockerCompose(DockerComposeExecutable rawExecutable, DockerMachine dockerMachine)
public void pull() throws IOException, InterruptedException
pull
in interface DockerCompose
IOException
InterruptedException
public void build() throws IOException, InterruptedException
build
in interface DockerCompose
IOException
InterruptedException
public void up() throws IOException, InterruptedException
up
in interface DockerCompose
IOException
InterruptedException
public void down() throws IOException, InterruptedException
down
in interface DockerCompose
IOException
InterruptedException
public void kill() throws IOException, InterruptedException
kill
in interface DockerCompose
IOException
InterruptedException
public void rm() throws IOException, InterruptedException
rm
in interface DockerCompose
IOException
InterruptedException
public void up(Container container) throws IOException, InterruptedException
up
in interface DockerCompose
IOException
InterruptedException
public void start(Container container) throws IOException, InterruptedException
start
in interface DockerCompose
IOException
InterruptedException
public void stop(Container container) throws IOException, InterruptedException
stop
in interface DockerCompose
IOException
InterruptedException
public void kill(Container container) throws IOException, InterruptedException
kill
in interface DockerCompose
IOException
InterruptedException
public String exec(DockerComposeExecOption dockerComposeExecOption, String containerName, DockerComposeExecArgument dockerComposeExecArgument) throws IOException, InterruptedException
exec
in interface DockerCompose
IOException
InterruptedException
public String run(DockerComposeRunOption dockerComposeRunOption, String containerName, DockerComposeRunArgument dockerComposeRunArgument) throws IOException, InterruptedException
run
in interface DockerCompose
IOException
InterruptedException
public List<ContainerName> ps() throws IOException, InterruptedException
ps
in interface DockerCompose
IOException
InterruptedException
public Optional<String> id(Container container) throws IOException, InterruptedException
id
in interface DockerCompose
IOException
InterruptedException
public String config() throws IOException, InterruptedException
config
in interface DockerCompose
IOException
InterruptedException
public List<String> services() throws IOException, InterruptedException
services
in interface DockerCompose
IOException
InterruptedException
public boolean writeLogs(String container, OutputStream output) throws IOException
writeLogs
in interface DockerCompose
IOException
public Ports ports(String service) throws IOException, InterruptedException
ports
in interface DockerCompose
IOException
InterruptedException
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.