Allow partial matches for docker IDs

This commit is contained in:
Alex Holliday committed 2024-11-13 15:16:31 +08:00
1 parent b5f67a83dd
commit a14e88ef29
1 file changed
+1 -1
+1 -1
View File
@@ -229,7 +229,7 @@ class NetworkService {
});
const containers = await docker.listContainers({ all: true });
const containerExists = containers.some((c) => c.Id === job.data.url);
const containerExists = containers.some((c) => c.Id.startsWith(job.data.url));
if (!containerExists) {
throw new Error(errorMessages.DOCKER_NOT_FOUND);
}