it seems ervery rebuild i did left behind a docker image named sha256:xxxxx with about 2,5gb in size on a plesk managed system - is it safe to delete them? is it only /app and /base that’s needed?
tia,
markus.
markusk asks if it’s safe to delete large Docker images (sha256:xxxxx, ~2.5GB) left behind after rebuilds on a Plesk-managed system, wondering if only /app and /base are needed. riking advises checking the launcher script to understand the cleanup command and running it manually to avoid removing critical containers. markusk confirms that running ./launcher cleanup removed the images and added a samsaffron/docker-gc image, with the app still running fine. riking clarifies they assumed other Docker apps were running, and markusk confirms only one Discourse instance is active, asking if cleanup could affect non-Discourse images in the future.
One of those containers is the one that’s currently running.
Look at the launcher script for the commands that make up the cleanup command, break them apart, and run them manually after checking that you’re not deleting anything needed by other parts of your system.
not sure what’s meant with ‘breaking appart’ - but i just ran ./launcher -cleanup which removed all the sha256:s and added an image ‘samsaffron/docker-gc’ .. app still running fine..
Oh, okay. I assumed you had other Docker apps running on the system since you were using a manager.
no, just one discourse instance running on a server that otherwise will only be used for classic webserving.
you think there’s a chance -cleanup would touch non-discourse images as well? (just for future reference)