fix(deps): upgrade core tooling dependencies and adapt Docker client internals for compatibility
This commit is contained in:
@@ -62,7 +62,11 @@ export class DockerContainer extends DockerResource {
|
||||
if (response.statusCode < 300) {
|
||||
logger.log('info', 'Container created successfully');
|
||||
// Return the created container instance
|
||||
return await DockerContainer._fromId(dockerHost, response.body.Id);
|
||||
const container = await DockerContainer._fromId(dockerHost, response.body.Id);
|
||||
if (!container) {
|
||||
throw new Error('Container was created but could not be retrieved');
|
||||
}
|
||||
return container;
|
||||
} else {
|
||||
logger.log('error', 'There has been a problem when creating the container');
|
||||
throw new Error(`Failed to create container: ${response.statusCode}`);
|
||||
@@ -70,18 +74,18 @@ export class DockerContainer extends DockerResource {
|
||||
}
|
||||
|
||||
// INSTANCE PROPERTIES
|
||||
public Id: string;
|
||||
public Names: string[];
|
||||
public Image: string;
|
||||
public ImageID: string;
|
||||
public Command: string;
|
||||
public Created: number;
|
||||
public Ports: interfaces.TPorts;
|
||||
public Labels: interfaces.TLabels;
|
||||
public State: string;
|
||||
public Status: string;
|
||||
public Id!: string;
|
||||
public Names!: string[];
|
||||
public Image!: string;
|
||||
public ImageID!: string;
|
||||
public Command!: string;
|
||||
public Created!: number;
|
||||
public Ports!: interfaces.TPorts;
|
||||
public Labels!: interfaces.TLabels;
|
||||
public State!: string;
|
||||
public Status!: string;
|
||||
public HostConfig: any;
|
||||
public NetworkSettings: {
|
||||
public NetworkSettings!: {
|
||||
Networks: {
|
||||
[key: string]: {
|
||||
IPAMConfig: any;
|
||||
|
||||
Reference in New Issue
Block a user