Skip to content

Commit

Permalink
Log docker daemon labels (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddumelendez authored Aug 22, 2024
1 parent ce6a032 commit 6eb047c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ async function initStrategy(strategy: ContainerRuntimeClientStrategy): Promise<C
cpus: dockerodeInfo.NCPU,
memory: dockerodeInfo.MemTotal,
runtimes: dockerodeInfo.Runtimes ? Object.keys(dockerodeInfo.Runtimes) : [],
labels: dockerodeInfo.Labels ? dockerodeInfo.Labels : [],
};

const composeInfo: ComposeInfo = composeClient.info;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type ContainerRuntimeInfo = {
cpus: number;
memory: number;
runtimes: string[];
labels: string[];
};

export type ComposeInfo =
Expand Down

0 comments on commit 6eb047c

Please sign in to comment.