Merge pull request #370 from llluiix/fix/update-docker-api-version

This commit is contained in:
Aarnav Tale
2025-11-22 09:43:06 -05:00
committed by GitHub
+3 -3
View File
@@ -94,7 +94,7 @@ export default class DockerIntegration extends Integration<T> {
try { try {
log.info('config', 'Checking API: %s', fetchU); log.info('config', 'Checking API: %s', fetchU);
await fetch(new URL('/v1.30/version', fetchU).href); await fetch(new URL('/v1.44/version', fetchU).href);
} catch (error) { } catch (error) {
log.error('config', 'Failed to connect to Docker API: %s', error); log.error('config', 'Failed to connect to Docker API: %s', error);
log.debug('config', 'Connection error: %o', error); log.debug('config', 'Connection error: %o', error);
@@ -140,7 +140,7 @@ export default class DockerIntegration extends Integration<T> {
); );
const res = await this.client.request({ const res = await this.client.request({
method: 'GET', method: 'GET',
path: `/v1.30/containers/json?${qp.toString()}`, path: `/v1.44/containers/json?${qp.toString()}`,
}); });
if (res.statusCode !== 200) { if (res.statusCode !== 200) {
@@ -211,7 +211,7 @@ export default class DockerIntegration extends Integration<T> {
const response = await this.client.request({ const response = await this.client.request({
method: 'POST', method: 'POST',
path: `/v1.30/containers/${this.containerId}/restart`, path: `/v1.44/containers/${this.containerId}/restart`,
}); });
if (response.statusCode !== 204) { if (response.statusCode !== 204) {