node { docker.image('kubakonieczny/ium:v1.0').withRun('-t' -e KAGGLE_USERNAME=kubakonieczny -e KAGGLE_KEY=${params.KAGGLE_KEY}) { c -> docker.image('kubakonieczny/ium:v1.0').inside { stage('Test') { sh 'cat /etc/issue' sh 'ls -lah' } } } sh 'docker logs ${c.id}' }