public abstract class Container extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Container.PortMapping |
Constructor and Description |
---|
Container() |
Modifier and Type | Method and Description |
---|---|
abstract String |
command() |
abstract Long |
created() |
abstract String |
id() |
abstract String |
image() |
abstract String |
imageId() |
abstract com.google.common.collect.ImmutableMap<String,String> |
labels() |
abstract com.google.common.collect.ImmutableList<ContainerMount> |
mounts() |
abstract com.google.common.collect.ImmutableList<String> |
names() |
abstract NetworkSettings |
networkSettings() |
abstract com.google.common.collect.ImmutableList<Container.PortMapping> |
ports() |
String |
portsAsString()
Returns port information the way that
docker ps does. |
abstract Long |
sizeRootFs() |
abstract Long |
sizeRw() |
abstract String |
state() |
abstract String |
status() |
public abstract String id()
public abstract String image()
public abstract String command()
public abstract Long created()
public abstract String status()
@Nullable public abstract com.google.common.collect.ImmutableList<Container.PortMapping> ports()
@Nullable public abstract NetworkSettings networkSettings()
@Nullable public abstract 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
PortBinding
.
PortBinding
Copyright © 2018. All rights reserved.