Class Container
java.lang.Object
com.spotify.docker.client.messages.Container
- Direct Known Subclasses:
AutoValue_Container
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringcommand()(package private) static Containercreate(String id, List<String> names, String image, String imageId, String command, Long created, String state, String status, List<Container.PortMapping> ports, Map<String, String> labels, Long sizeRw, Long sizeRootFs, NetworkSettings networkSettings, List<ContainerMount> mounts) abstract Longcreated()abstract Stringid()abstract Stringimage()abstract StringimageId()labels()abstract com.google.common.collect.ImmutableList<ContainerMount> mounts()abstract com.google.common.collect.ImmutableList<String> names()abstract NetworkSettingsabstract com.google.common.collect.ImmutableList<Container.PortMapping> ports()Returns port information the way thatdocker psdoes.abstract Longabstract LongsizeRw()abstract Stringstate()abstract Stringstatus()
-
Constructor Details
-
Container
public Container()
-
-
Method Details
-
id
-
names
-
image
-
imageId
-
command
-
created
-
state
-
status
-
ports
-
labels
-
sizeRw
-
sizeRootFs
-
networkSettings
-
mounts
-
portsAsString
Returns port information the way thatdocker psdoes.0.0.0.0:5432->5432/tcpor6379/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:
-
create
-