Skip to content

Commit 6eb047c

Browse files
authored
Log docker daemon labels (#815)
1 parent ce6a032 commit 6eb047c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/testcontainers/src/container-runtime/clients/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ async function initStrategy(strategy: ContainerRuntimeClientStrategy): Promise<C
123123
cpus: dockerodeInfo.NCPU,
124124
memory: dockerodeInfo.MemTotal,
125125
runtimes: dockerodeInfo.Runtimes ? Object.keys(dockerodeInfo.Runtimes) : [],
126+
labels: dockerodeInfo.Labels ? dockerodeInfo.Labels : [],
126127
};
127128

128129
const composeInfo: ComposeInfo = composeClient.info;

packages/testcontainers/src/container-runtime/clients/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export type ContainerRuntimeInfo = {
2222
cpus: number;
2323
memory: number;
2424
runtimes: string[];
25+
labels: string[];
2526
};
2627

2728
export type ComposeInfo =

0 commit comments

Comments
 (0)