sqlite: disable docker logging when backing up

The redirection > ${outputFile} applies to the docker run client process, not to the container itself.
The Docker daemon is still collecting the container’s stdout and logging it.

https://forum.cloudron.io/topic/13361/after-ubuntu-22-24-upgrade-syslog-getting-spammed-and-grows-way-to-much-clogging-up-the-diskspace/
This commit is contained in:
Girish Ramakrishnan
2025-09-15 15:46:27 +02:00
parent e8a9bd83d3
commit e45af9b611

View File

@@ -932,6 +932,7 @@ async function backupSqlite(app, options) {
const cmd = `sqlite3 ${p} ".dump"`;
const runCmd = `docker run --rm --name=sqlite-${app.id} \
--net cloudron \
--log-driver=none \
-v ${volumeDataDir}:/app/data \
--label isCloudronManaged=true \
--read-only -v /tmp -v /run ${app.manifest.dockerImage} ${cmd} > ${outputFile}`;