pipeline { agent any; stage('docker-training') { steps { script { def image = docker.build('dock') image.inside{ sh 'training.py' sh 'python3 ./training.py' } } } } }