I have somehow a tricky situation. We use Teamcity in our company and have our TC-Agents running in Docker container. This is very convenient to run several independent agents on one host without conflicting each other.
BUT now I have the requirement, that our agent should pack the result of the build into a docker image. For that, I need the docker client to run
docker build. So, my first though was, to install docker inside docker, but actually this doesn’t sound like a very good idea.
Do I have any other options? Is it possible, to run the
docker build via remote api so that I just access my outer docker daemon?