Uses useHostNetwork in docker arguments for the linux command

This commit is contained in:
Daniel Lupiañez Casares
2026-04-17 19:27:41 +02:00
committed by frostebite
parent 7b2ec07fc1
commit b57598a959

View File

@@ -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`} \