Docker.ContainerId (docker_wrapper v0.1.2)

Copy Markdown View Source

A Docker container ID with both full and short forms.

Summary

Functions

Parses a container ID from Docker output (typically a full 64-char hex string).

Types

t()

@type t() :: %Docker.ContainerId{full: String.t(), short: String.t()}

Functions

parse(raw)

@spec parse(String.t()) :: t()

Parses a container ID from Docker output (typically a full 64-char hex string).

Examples

iex> Docker.ContainerId.parse("abc123def456789\n")
%Docker.ContainerId{full: "abc123def456789", short: "abc123de"}