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 String |
imageId |
private com.google.common.collect.ImmutableMap<String,String> |
labels |
private com.google.common.collect.ImmutableList<ContainerMount> |
mounts |
private com.google.common.collect.ImmutableList<String> |
names |
private NetworkSettings |
networkSettings |
private com.google.common.collect.ImmutableList<Container.PortMapping> |
ports |
private Long |
sizeRootFs |
private Long |
sizeRw |
private String |
state |
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() |
String |
imageId() |
Map<String,String> |
labels() |
List<ContainerMount> |
mounts() |
List<String> |
names() |
NetworkSettings |
networkSettings() |
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 |
state() |
String |
status() |
String |
toString() |
private String id
private com.google.common.collect.ImmutableList<String> names
private String image
private String imageId
private String command
private Long created
private String state
private String status
private com.google.common.collect.ImmutableList<Container.PortMapping> ports
private Long sizeRw
private Long sizeRootFs
private NetworkSettings networkSettings
private com.google.common.collect.ImmutableList<ContainerMount> mounts
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
PortBindingPortBindingpublic 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 © 2016. All rights reserved.