docker: fix image prune

it seems docker images --digests cloudron/sftp --format "{{.ID}} {{.Repository}}:{{.Tag}}@{{.Digest}}
broke at some point
This commit is contained in:
Girish Ramakrishnan
2023-08-08 10:42:16 +05:30
parent 7d9e697d85
commit c6db1c70c0
9 changed files with 81 additions and 76 deletions

View File

@@ -141,7 +141,7 @@ async function configureMail(mailFqdn, mailDomain, serviceConfig) {
// MAIL_DOMAIN is the domain for which this server is relaying mails
// mail container uses /app/data for backed up data and /run for restart-able data
const tag = infra.images.mail.tag;
const image = infra.images.mail;
const memoryLimit = serviceConfig.memoryLimit || exports.DEFAULT_MEMORY_LIMIT;
const memory = await system.getMemoryAllocation(memoryLimit);
const cloudronToken = hat(8 * 128), relayToken = hat(8 * 128);
@@ -187,7 +187,7 @@ async function configureMail(mailFqdn, mailDomain, serviceConfig) {
-v "${paths.MAIL_CONFIG_DIR}:/etc/mail:ro" \
${ports} \
--label isCloudronManaged=true \
${readOnly} -v /run -v /tmp ${tag} ${cmd}`;
${readOnly} -v /run -v /tmp ${image} ${cmd}`;
await shell.promises.exec('startMail', runCmd);
}