module

Mangrullo::ContainerNameUtils

Utility methods for container name normalization and formatting

Class methods

display_name(name : String, max_length : Int32 = 30) : String

Get display name (truncated if too long)

Source
normalize_name(container_info) : String

Get a normalized container name from a container info object

Source
normalize_name_string(name : String) : String

Normalize a container name string (remove leading '/')

Source
truncate_id(container_id : String, length : Int32 = Constants::Docker::CONTAINER_ID_TRUNCATE_LENGTH) : String

Truncate container ID for display

Source