-
-
Notifications
You must be signed in to change notification settings - Fork 486
Closed
Description
Hello there,
how do I set the workdir parameter for docker run? I have been trying:
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());
}
but unfortunately it is not working
Metadata
Metadata
Assignees
Labels
No labels