Seleniumbase in docker with cdp mode and proxy #3662
-
Hello! I am working on a scraper. It is working totally fine on ubuntu 22.04, but once i tried to run it in docker container with your Dockerfile and http proxy="user:pass@host:port" i got an error: "selenium.common.exceptions.SessionNotCreatedException: Message: session not created: cannot connect to chrome at 127.0.0.1:9222 in short:
I will be glad for any help how to use proxy inside docker container
full traceback
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Also, Docker leaves a fingerprint, so it's not compatible with UC Mode / CDP Mode. The included Dockerfile is only intended for regular SeleniumBase use (not for stealth). Use regular Ubuntu Linux (without Docker) for UC Mode / CDP Mode. |
Beta Was this translation helpful? Give feedback.
"session not created: cannot connect to chrome at 127.0.0.1:9222"
and"from chrome not reachable"
generally mean that Chrome is not in the default location. Set it with thebinary_location
arg.Also, Docker leaves a fingerprint, so it's not compatible with UC Mode / CDP Mode. The included Dockerfile is only intended for regular SeleniumBase use (not for stealth). Use regular Ubuntu Linux (without Docker) for UC Mode / CDP Mode.