I’m running the teamcity server with 2 agents, via docker, version : 2022.10.2-linux, in Windows 11 . In the agent parameters tab, I can see the docker version:
20.10.12 docker.version. It turns out that when I’m going to create a pipeline for my kotlin application (1.8), with gradle (7.6), I can’t run because it has the following error: docker.server.version exists. I’ve searched some places on the internet but i don’t know how to solve it. Could someone help?
2
Answers
I tried both options, but to no avail. My docker compose file
I assume some steps of your build configuration need docker so that build configuration should be executed on agent with docker installed. Adding docker dependent steps adds implicit requirement that agent configuration parameter
docker.server.version
exists. This parameter is set up automatically during agent’s startup if docker is available. You run your TeamCity agent in docker container but there’s no docker inside that container. Basically, you have two options: