diff --git a/cli/src/util/helpers/deploy.ts b/cli/src/util/helpers/deploy.ts index aa02c4fa5..79a9fdcbc 100644 --- a/cli/src/util/helpers/deploy.ts +++ b/cli/src/util/helpers/deploy.ts @@ -93,7 +93,8 @@ async function deployPeriphery({ periphery }: Config) { const network = `-p ${port}:${DEFAULT_PERIPHERY_PORT}`; const env = `-e SYSROOT=${trailingSlash(periphery?.sysroot!)}`; const restartArg = `--restart ${restart}`; - const command = `docker run -d ${nameConfig} ${volume} ${network} ${env} ${restartArg} ${PERIPHERY_IMAGE}`; + const hostCommunication = "--add-host=host.docker.internal:host-gateway" + const command = `docker run -d ${nameConfig} ${volume} ${network} ${env} ${restartArg} ${hostCommunication} ${PERIPHERY_IMAGE}`; return await execute(command); }