extract docker-clinet code from https://github.com/gesellix-docker/gradle-docker-plugin