fix(deps): upgrade core tooling dependencies and adapt Docker client internals for compatibility
This commit is contained in:
@@ -61,30 +61,30 @@ export class DockerNetwork extends DockerResource {
|
||||
});
|
||||
if (response.statusCode < 300) {
|
||||
logger.log('info', 'Created network successfully');
|
||||
return await DockerNetwork._fromName(
|
||||
const network = await DockerNetwork._fromName(
|
||||
dockerHost,
|
||||
networkCreationDescriptor.Name,
|
||||
);
|
||||
if (!network) {
|
||||
throw new Error('Network was created but could not be retrieved');
|
||||
}
|
||||
return network;
|
||||
} else {
|
||||
logger.log(
|
||||
'error',
|
||||
'There has been an error creating the wanted network',
|
||||
);
|
||||
return null;
|
||||
throw new Error('There has been an error creating the wanted network');
|
||||
}
|
||||
}
|
||||
|
||||
// INSTANCE PROPERTIES
|
||||
public Name: string;
|
||||
public Id: string;
|
||||
public Created: string;
|
||||
public Scope: string;
|
||||
public Driver: string;
|
||||
public EnableIPv6: boolean;
|
||||
public Internal: boolean;
|
||||
public Attachable: boolean;
|
||||
public Ingress: false;
|
||||
public IPAM: {
|
||||
public Name!: string;
|
||||
public Id!: string;
|
||||
public Created!: string;
|
||||
public Scope!: string;
|
||||
public Driver!: string;
|
||||
public EnableIPv6!: boolean;
|
||||
public Internal!: boolean;
|
||||
public Attachable!: boolean;
|
||||
public Ingress!: false;
|
||||
public IPAM!: {
|
||||
Driver: 'default' | 'bridge' | 'overlay';
|
||||
Config: [
|
||||
{
|
||||
@@ -130,7 +130,7 @@ export class DockerNetwork extends DockerResource {
|
||||
IPv6Address: string;
|
||||
}>
|
||||
> {
|
||||
const returnArray = [];
|
||||
const returnArray: any[] = [];
|
||||
const response = await this.dockerHost.request(
|
||||
'GET',
|
||||
`/networks/${this.Id}`,
|
||||
|
||||
Reference in New Issue
Block a user