image name cannot start with '/'
https://forum.cloudron.io/topic/6689/cannot-uninstall-custom-app https://stackoverflow.com/questions/43091075/docker-restrictions-regarding-naming-image
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user