diff --git a/docker.js b/docker.js index 079d1f812..390b852f4 100644 --- a/docker.js +++ b/docker.js @@ -1087,10 +1087,11 @@ export const getCredsFromHelper = (exeSuffix, serverAddress) => { if (isWin) { credHelperExe = credHelperExe + ".exe"; } - const result = spawnSync(credHelperExe, ["get", serverAddress], { + const result = spawnSync(credHelperExe, ["get"], { + input: serverAddress, encoding: "utf-8" }); - console.log("Invoking", credHelperExe, "get", serverAddress); + console.log("Invoking", credHelperExe, "get"); if (result.status !== 0 || result.error) { console.log(result.stdout, result.stderr); } else if (result.stdout) {