diff --git a/lib/config/dockerSecret.js b/lib/config/dockerSecret.js index 69e0de36e..7ff6506fb 100644 --- a/lib/config/dockerSecret.js +++ b/lib/config/dockerSecret.js @@ -7,7 +7,7 @@ const basePath = path.resolve('/run/secrets/') function getSecret (secret) { const filePath = path.join(basePath, secret) - if (fs.existsSync(filePath)) return fs.readFileSync(filePath) + if (fs.existsSync(filePath)) return fs.readFileSync(filePath, 'utf-8') return undefined }