I'm trying to set up a Docker environment for web scraping with Selenium. My Dockerfile is based on Python 3.11-slim, and I've included the needed packages. However, when I build the Docker image, it's failing to work as expected. I would really appreciate any help or guidance in resolving this issue!
2 Answers
Have you considered using one of the official Selenium base images instead of starting from python:slim? It can save you some hassle and make things a lot easier to set up. Check out the GitHub page for them; it might be what you need!
It looks like you're facing a compatibility issue. The error message indicates that the version of ChromeDriver you have only supports Chrome version 114, but your current browser version is 136.0.7103.59. So, you'll need to update either the ChromeDriver or the Chrome version you're using. That should clear things up!
Totally! Updating them to compatible versions is definitely the way to go. It should resolve your issue!
Yes, the error message is pretty clear about the mismatch. Just match your ChromeDriver version with your installed Chrome version to fix it!