public class ContainerNamingUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTAINER_NAME_PATTERN |
Modifier and Type | Method and Description |
---|---|
static String |
formatContainerName(ImageConfiguration image,
String defaultContainerNamePattern,
Date buildTimestamp,
Collection<Container> existingContainers) |
static Collection<Container> |
getContainersToStop(ImageConfiguration image,
String defaultContainerNamePattern,
Date buildTimestamp,
Collection<Container> containers)
Keep only the entry with the higest index if an indexed naming scheme for container has been chosen.
|
public static final String DEFAULT_CONTAINER_NAME_PATTERN
public static String formatContainerName(ImageConfiguration image, String defaultContainerNamePattern, Date buildTimestamp, Collection<Container> existingContainers)
public static Collection<Container> getContainersToStop(ImageConfiguration image, String defaultContainerNamePattern, Date buildTimestamp, Collection<Container> containers)
image
- the image from which to the the container patterndefaultContainerNamePattern
- the default container name patternbuildTimestamp
- the timestamp for the buildcontainers
- the list of existing containersCopyright © 2019. All rights reserved.