Chromium/Chrome fails to start inside Docker container (FailedToStartBrowser) #308
-
Description of the IssueI am attempting to run pydoll inside a Docker container, but the embedded browser (Chrome/Chromium) never starts. I consistently receive the following error: This happens even after installing Chrome Stable, Chromium, Firefox ESR, xvfb, and all required browser dependencies. Full Error LogsError 1Error 2 (minimal example)Minimal Reproducible CodeDockerfile UsedExpected BehaviorChromium/Chrome should start normally inside the container and allow Observed BehaviorThe browser process attempts to start but apparently crashes or exits before pydoll can connect. pydoll eventually raises: This occurs even with:
Additional Notes
Possible Causes (Hypotheses)
Questions for the Maintainers
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
❓ Does anyone have a working Dockerfile?I'm running into the exact same issue when trying to use Pydoll inside a Docker container. Dockerfile I'm usingTest codeError❗ SummaryEverything installs fine, but Pydoll is unable to start Chrome inside Docker. |
Beta Was this translation helpful? Give feedback.
-
|
Resolvi adicionando essas parametros na config do browser: options.add_argument('--no-sandbox') |
Beta Was this translation helpful? Give feedback.
Resolvi adicionando essas parametros na config do browser:
options.add_argument('--no-sandbox')
options.add_argument('--disable-gpu')
options.add_argument('--disable-dev-shm-usage')
options.add_argument('--no-zygote')
options.add_argument('--disable-setuid-sandbox')