Class ContainerRecord
java.lang.Object
org.jenkinsci.plugins.docker.commons.fingerprint.ContainerRecord
- All Implemented Interfaces:
Serializable
Records a container started from a known image.
Key properties out of "docker inspect" limited to a subset because fingerprints are performance sensitive.
We may opt to store the whole JSON but that's probably need a better data store.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
64byte sha1 container ID.Human readable container name.long
When was this container created?getHost()
The host name on which the container is run.Get the ID of the image from which this container was started.getTags()
Additional user-specified context information submitted from clients.int
hashCode()
void
setImageId
(String imageId) Set the image ID of the image from which this container was started.
-
Constructor Details
-
ContainerRecord
-
-
Method Details
-
getHost
The host name on which the container is run. -
getContainerId
64byte sha1 container ID. -
getImageId
Get the ID of the image from which this container was started.- Returns:
- The ID of the image from which this container was started.
-
setImageId
Set the image ID of the image from which this container was started.- Parameters:
imageId
- The image ID of the image from which this container was started.
-
getContainerName
Human readable container name. -
getCreated
public long getCreated()When was this container created? -
getTags
Additional user-specified context information submitted from clients. -
equals
-
hashCode
public int hashCode()
-