const docker = new Docker();
if (task.image) {
return await docker
.run(task.image, ["/bin/sh", "-c", task.cmd], process.stdout, {
Volumes: {
"/opt/repository": {},
},
Hostconfig: {
Binds: [`${repositoryPath}:/opt/repository`],
},
Workdir: "/opt/repository",
})
.then(([output, container]) => container.remove());
}
Hello there,
how do I set the workdir parameter for docker run? I have been trying:
but unfortunately it is not working