Hi @Kim, yes you can. You can use the withServer() function for this. Use it in a similar manner
node {
checkout scm
docker.withServer('tcp://swarm.example.com:2376', 'swarm-certs') {
docker.image('mysql:5').withRun('-p 3306:3306') {
/* do things */
}
}
}