diun icon indicating copy to clipboard operation
diun copied to clipboard

Add Docker Labels to Container Metadata

Open madhathacker opened this issue 9 months ago • 0 comments

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: https://github.com/crazy-max/diun/issues/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.

madhathacker avatar Mar 16 '25 23:03 madhathacker