Skip to content

Add Docker Labels to Container Metadata #1384

@madhathacker

Description

@madhathacker

Description

Overview
I would like to request the ability to pull a containers stack name from its labels (along with all the other labels). When using docker inspect, this value can be found in .config.labels["com.docker.compose.project"].

Related Previous ticket: #798

Current Behavior
Currently the container.go code utilizes the docker package to pull limited default metadata for a container, as described in the projects documentation.

Requested Behavior
Update the function to include the container's labels from its summary, as defined in the docker go package. It is an array of strings.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions