jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-44234] tag a Image after pulling it from a private registry

Open
#499 0 comments 0 reactions 0 assignees View on GitHub
component:docker-workflow-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
527
Forks
422
Avg merge
10m
Merged PRs (30d)
1

Description

If you pull a image from a private registry you can't tag it or run it. 

```

docker.withRegistry("https://docker.bla.de"){

r_image = docker.image("${docker_image_name}:${dev_image_tag}")

r_image.pull()

r_image.tag("current")

}

```

The example above doesn't work. I did a pull request to fix this behavior. 

---
Originally reported by schreibe72, imported from: tag a Image after pulling it from a private registry


  • status: Open
  • priority: Minor
  • component(s): docker-workflow-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-07

Raw content of original issue

If you pull a image from a private registry you can't tag it or run it. 

```
docker.withRegistry("https://docker.bla.de"){
r_image = docker.image("${docker_image_name}:${dev_image_tag}")
r_image.pull()
r_image.tag("current")
}
```
The example above doesn't work. I did a pull request to fix this behavior. 

environment

```
Jenkins 2.59

Docker 1.17

Ubuntu 14.04
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.