Hello Peter,
There is a lot of documentation at
https://go.cloudbees.com/docs/cloudbees-documentation/cje-user-guide/index.html#docker-workflow-sect-build
You can use docker.build(...).inside{...} and
docker.image("my-image").inside {...}
The sample below should do what you want.
node {
git
I might just be missing something here.. But it seems like the docker
pipeline stuff is pretty busted.
docker.build does *not* seem to return a docker image, even if the build
was successful. Nor does docker.image("image id") return a usable image
object. I'm rewriting these two functions in a