JetBrains / teamcity-docker-agent

TeamCity agent docker image sources
https://hub.docker.com/r/jetbrains/teamcity-agent/
Apache License 2.0
77 stars 64 forks source link

Windows Docker Agent Building Windows Docker Images #67

Closed cculver closed 4 years ago

cculver commented 4 years ago

I'm running the latest version of Docker on Windows 10 and have it configured to use Windows containers. I've pulled down and am running the teamcity build agent as a docker image and have it configured to connect to the teamcity server correctly. Upon authorizing the build agent, it seems that I'm unable to assign this build agent to builds which are building windows docker containers. The agent was apparently unable to pick up on the fact that docker is running on the machine. Am I missing an environment variable or something when running the teamcity build agent docker image?

cculver commented 4 years ago

Nevermind. It seems as if it uses the command prompt to detect the existence of docker and run operations on it rather than utilizing docker sockets. The solution was to install it as a windows service and it successfully found docker. As others had mentioned, I also configured the service to run under SYSTEM and set up dependencies on Docker's two services running on the computer.