示例#1
0
文件: utils.go 项目: ncdc/kubernetes
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())
}