diff --git a/src/docker.js b/src/docker.js index e0cac105a..6d61737e8 100644 --- a/src/docker.js +++ b/src/docker.js @@ -512,7 +512,7 @@ async function deleteImage(manifest) { const dockerImage = manifest ? manifest.dockerImage : null; if (!dockerImage) return; - if (dockerImage.includes('//')) return; // a common mistake is to paste a https:// as docker image. this results in a crash at runtime in dockerode module (https://github.com/apocas/dockerode/issues/548) + if (dockerImage.includes('//') || dockerImage.startsWith('/')) return; // a common mistake is to paste a https:// as docker image. this results in a crash at runtime in dockerode module (https://github.com/apocas/dockerode/issues/548) const removeOptions = { force: false, // might be shared with another instance of this app