Using a custom registry By default the plugin:docker-workflow[Docker Pipeline] integrates assumes the default Docker Registry of Docker Hub. In order to use a custom Docker Registry, users of Scripted Pipeline can wrap steps with the withRegistry()  method, passing in the custom Registry URL, for example: For a Docker Registry which requires authentication, add a "Username/Password" Credentials item from the Jenkins home page and use the Credentials ID as a second argument to  withRegistry() : 58 node { checkout scm docker.withRegistry('https://registry.example.com', 'credentials-id') { def customImage = docker.build("my-image:${env.BUILD_ID}") /* Push the container to the custom Registry */ customImage.push() } } node { checkout scm docker.withRegistry('https://registry.example.com') { docker.image('my-custom-image').inside { sh 'make test' } } }