def withDockerImage(String imageName, Closure cmd) { docker.image(imageName).inside() { cmd() } }