public interface Swarm
See the swarm mode and swarm API documentation for more information.
Modifier and Type | Method and Description |
---|---|
Docker |
docker()
Docker engine.
|
String |
init(javax.json.JsonObject spec)
Initialize a new swarm by providing a full specification.
|
String |
init(String listenAddress)
Initialize a new swarm.
|
javax.json.JsonObject |
inspect()
Inspects this swarm, returning low-level information
about it in Json format.
|
void |
leave(boolean force)
Leave the Swarm.
|
javax.json.JsonObject inspect() throws IOException
IOException
- If something goes wrong.String init(String listenAddress) throws IOException
listenAddress
- Listen address used for inter-manager communication.
This can either be in the form of '192.168.1.1:4567' or 'eth0:4567'
where the port number is optional in both cases.IOException
- If something goes wrong.String init(javax.json.JsonObject spec) throws IOException
spec
- Full specification for the swarm.IOException
- If something goes wrong.void leave(boolean force) throws IOException
force
- Force leave swarm, even if this is the last manager or that
it will break the cluster.IOException
- If something goes wrong.Docker docker()
Copyright © 2018. All rights reserved.