As I understand it, you can specify a docker agent like below with a label. This option/field is however not available in the blue ocean plugin, as can be seen in the attached images. Same goes for the dockerfile agent. agent { docker
} from: https://jenkins.io/doc/book/pipeline/syntax/