fix(core): update
This commit is contained in:
parent
c76968bbe8
commit
4f838837f8
@ -90,4 +90,17 @@ export class DockerNetwork {
|
||||
public async remove() {
|
||||
const response = await this.dockerHost.request('DELETE', `/networks/${this.Id}`);
|
||||
}
|
||||
|
||||
public async getContainersOnNetwork(): Promise<{
|
||||
[key: string]: {
|
||||
Name: string;
|
||||
EndpointID: string;
|
||||
MacAddress: string;
|
||||
IPv4Address: string;
|
||||
IPv6Address: string;
|
||||
};
|
||||
}> {
|
||||
const response = await this.dockerHost.request('GET', `/networks/${this.Id}`);
|
||||
return response.body.Containers;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user