Пример #1
0
func BuildContainerName(metadata *runtimeApi.ContainerMetadata) string {
	return fmt.Sprintf("%s_%d", metadata.GetName(), metadata.GetAttempt())
}
Пример #2
0
func BuildContainerName(metadata *runtimeapi.ContainerMetadata, sandboxID string) string {
	// include the sandbox ID to make the container ID unique.
	return fmt.Sprintf("%s_%s_%d", sandboxID, metadata.GetName(), metadata.GetAttempt())
}