Interface Container
@Immutable
@Enclosing
public interface Container
-
Method Details
-
id
String id() -
names
-
image
String image() -
imageId
String imageId() -
command
String command() -
created
Long created() -
state
String state() -
status
String status() -
ports
List<Container.PortMapping> ports() -
labels
-
sizeRw
Long sizeRw() -
sizeRootFs
Long sizeRootFs() -
networkSettings
NetworkSettings networkSettings() -
mounts
List<ContainerMount> mounts() -
portsAsString
Returns port information the way thatdocker ps
does.0.0.0.0:5432->5432/tcp
or6379/tcp
.It should not be used to extract detailed information of ports. To do so, please refer to
PortBinding
.- Returns:
- port information as docker ps does.
- See Also:
-