public class Container extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Container.PortMapping |
| Constructor and Description |
|---|
Container() |
| Modifier and Type | Method and Description |
|---|---|
String |
command() |
Long |
created() |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
id() |
String |
image() |
String |
imageId() |
Map<String,String> |
labels() |
List<ContainerMount> |
mounts() |
List<String> |
names() |
NetworkSettings |
networkSettings() |
List<Container.PortMapping> |
ports() |
String |
portsAsString()
Returns port information the way that
docker ps does. |
Long |
sizeRootFs() |
Long |
sizeRw() |
String |
state() |
String |
status() |
String |
toString() |
public String portsAsString()
docker ps does.
0.0.0.0:5432->5432/tcp or 6379/tcp.
It should not be used to extract detailed information of ports. To do so, please refer to
PortBinding.
PortBindingpublic String id()
public String image()
public String imageId()
public String command()
public Long created()
public String state()
public String status()
public List<Container.PortMapping> ports()
public Long sizeRw()
public Long sizeRootFs()
public NetworkSettings networkSettings()
public List<ContainerMount> mounts()
Copyright © 2017. All rights reserved.