When creating a pipeline job and select the job to be run in a Docker slave, the pipeline itself is not run in the container. When letting the pipeline stop with a "cat" command and listing running containers during the job is running, there is no slave container running.
Steps to reproduce:
Create job of type "Pipeline"
Run the build inside Docker containers -> Main build container: Build Dockerfile
Pipeline -> Pipeline Script:
stage 'Wait forever'
sh "cat /dev/zero > /dev/null"
Do a "docker ps" on the host to verify no container is running.