Package io.fabric8.maven.docker.model
Interface Container
-
- All Known Implementing Classes:
ContainerDetails,ContainersListElement
public interface ContainerInterface representing a container- Since:
- 16/07/15
- Author:
- roland
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classContainer.PortBinding
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCreated()Map<String,String>getCustomNetworkIpAddresses()Return IP Addresses of custom networks, mapped to the network name as the key.IntegergetExitCode()Exit code of the container if it already has excitedStringgetId()StringgetImage()StringgetIPAddress()IP Adress of the container if providedMap<String,String>getLabels()StringgetName()StringgetNetworkMode()Map<String,Container.PortBinding>getPortBindings()booleanisRunning()
-
-
-
Method Detail
-
getCreated
long getCreated()
-
getId
String getId()
-
getImage
String getImage()
-
getName
String getName()
-
getNetworkMode
String getNetworkMode()
-
getPortBindings
Map<String,Container.PortBinding> getPortBindings()
-
isRunning
boolean isRunning()
-
getIPAddress
String getIPAddress()
IP Adress of the container if provided- Returns:
- the IP address of the container or
nullif not provided.
-
getCustomNetworkIpAddresses
Map<String,String> getCustomNetworkIpAddresses()
Return IP Addresses of custom networks, mapped to the network name as the key.- Returns:
- The mapping of network names to IP addresses, or null it none provided.
-
getExitCode
Integer getExitCode()
Exit code of the container if it already has excited- Returns:
- exit code if the container has excited,
nullif it is still running. Also null, if the implementation doesn't support an exit code.
-
-