Support Docker API 1.45
scaddenp opened this issue · 10 comments
Running selenoid/latest in portainer. Tests fail with this message:
Message: create container: Error response from daemon: {"message":"client version 1.12 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version"}
Docker API version on portainer is 1.45, Docker Compose version is v2.25.0
I dont get what that message is telling me.
Selenoid has been working fine for ages. I believe the issue may have started with a Portainer upgrade to CE 2.19.4
Same issue with me, after upgrading the Docker Engine to v26.1.0 (API version: 1.45) and running selenoid:1.11.2 -> can not create the container.
{"message":"client version 1.12 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version"}
I notice a commit 3 months ago (Jan 25) meant address #1397 about the docker version. I am pulling /latest in the compose, but I am wondering if this has that fix.
Looking at the startup log, I see:
"Did not manage to determine your Docker API version - using default version: 1.41"
@nhanvolac - do you see the same message?
Changed compose to aerokube/selenoid:1.11.2 and get message:
Did not manage to determine your Docker API version - using default version: 1.44
But now I get no longer get the minimum API version error message. It now cant find the browser image which is a more reasonable message, as in processing off updating browsers
Further. I updated Compose to specify the 1.11.2 image. And manually pushed a browser.json with updated chrome version, then downloaded the selenoid:chrome.123 version onto portainer. A run no longer produces that error message, and the chrome container is successfully started. Now getting message: "Could not instantiate class org.openqa.selenium.chrome.ChromeDriver" which might be config at my end or something missing with config (I cant execute CM).
Same issue, I manually added environment variable DOCKER_API_VERSION with value "1.45" and error is gone. Looks like variable wasn't set somehow
Same issue, I manually added environment variable DOCKER_API_VERSION with value "1.45" and error is gone. Looks like variable wasn't set somehow
could you help me out? where do you specify it? i'm really dump on docker
Critical to this making you sure you are using the 1.11.2 or better selenoid version in your dockfile or compose.
This was released a lot of time ago as Selenoid 1.11.3.