diff --git a/src/model/docker.ts b/src/model/docker.ts index 438dbddc..2f1880c3 100644 --- a/src/model/docker.ts +++ b/src/model/docker.ts @@ -42,6 +42,7 @@ class Docker { const { workspace, actionFolder, + useHostNetwork, runnerTempPath, sshAgent, sshPublicKeysDirectoryPath, @@ -85,6 +86,7 @@ class Docker { : '' } \ ${sshPublicKeysDirectoryPath ? `--volume ${sshPublicKeysDirectoryPath}:/root/.ssh:ro` : ''} \ + ${useHostNetwork ? '--net=host' : ''} \ ${entrypointBash ? `--entrypoint ${commandPrefix}` : ``} \ ${image} \ ${entrypointBash ? `-c` : `${commandPrefix} -c`} \