Allow partial matches for docker IDs
This commit is contained in:
1 parent
b5f67a83dd
commit
a14e88ef29
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user