Skip to content

Commit

Permalink
Update Docker configuration to support windows
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed Feb 20, 2024
1 parent d07a028 commit 7c1bf7d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion electron/docker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
const Docker = require("dockerode");
const docker = new Docker();

const docker = new Docker(
process.platform === "win32"
? { socketPath: "//./pipe/docker_engine" }
: { socketPath: "/var/run/docker.sock" },
);

function isDockerRunning() {
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 7c1bf7d

Please sign in to comment.