docker - Chromium browser instance IGNORING argument: '--remote-debugging-address=0.0.0.0' - Stack Overflow

I have spent many, many hours trying to solve this. When run locally or inside a Docker container, the

I have spent many, many hours trying to solve this. When run locally or inside a Docker container, the following script fails in binding to IP 0.0.0.0 and instead reverts to the default loopback 127.0.0.1 making remote debugging inaccessible. I have no idea why this is and would immensely appreciate any thoughts.

const { chromium } = require('playwright');

(async () => {
  const browser = await chromium.launch({
    headless: true,
    args: [
      '--remote-debugging-port=9222',
      '--remote-debugging-address=0.0.0.0',
      '--disable-ipc-flooding-protection',
      '--no-sandbox',
      '--disable-gpu',
      '--disable-dev-shm-usage',
      '--disable-setuid-sandbox'
    ]
  });
  const page = await browser.newPage();
  await page.goto('');
})();

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744277645a4566411.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信