public class Container extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Container.PortMapping |
Modifier and Type | Field and Description |
---|---|
private String |
command |
private Long |
created |
private String |
id |
private String |
image |
private com.google.common.collect.ImmutableList<String> |
names |
private com.google.common.collect.ImmutableList<Container.PortMapping> |
ports |
private Long |
sizeRootFs |
private Long |
sizeRw |
private String |
status |
Constructor and Description |
---|
Container() |
Modifier and Type | Method and Description |
---|---|
String |
command() |
Long |
created() |
boolean |
equals(Object o) |
int |
hashCode() |
String |
id() |
String |
image() |
List<String> |
names() |
List<Container.PortMapping> |
ports() |
String |
portsAsString()
This method returns port information the way that
docker ps does:
0.0.0.0:5432->5432/tcp or 6379/tcp
It should not be used to extract detailed information of ports. |
Long |
sizeRootFs() |
Long |
sizeRw() |
String |
status() |
String |
toString() |
private String id
private com.google.common.collect.ImmutableList<String> names
private String image
private String command
private Long created
private String status
private com.google.common.collect.ImmutableList<Container.PortMapping> ports
private Long sizeRw
private Long sizeRootFs
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
PortBinding
public String id()
public String image()
public String command()
public Long created()
public String status()
public List<Container.PortMapping> ports()
public Long sizeRw()
public Long sizeRootFs()
Copyright © 2015. All rights reserved.