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:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user