Specifying --bind-port should not be necessary, we can parse any port to expose from the flags supplied to the browser. For instance, if Puppeteer passes --remote-debugging-port=9000, then we know to expose port 9000 in the docker run command.
If Puppeteer passes --remote-debugging-port=0, we need to change it to a random available port number on its way to Chromium. If --remote-debugging-pipe is passed, then we don't need to expose any ports.
Specifying
--bind-port
should not be necessary, we can parse any port to expose from the flags supplied to the browser. For instance, if Puppeteer passes--remote-debugging-port=9000
, then we know to expose port9000
in thedocker run
command.If Puppeteer passes
--remote-debugging-port=0
, we need to change it to a random available port number on its way to Chromium. If--remote-debugging-pipe
is passed, then we don't need to expose any ports.