jenkinsci / jenkinsci/docker-workflow-plugin
[JENKINS-44234] tag a Image after pulling it from a private registry
- 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
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
Assessment
This issue has not been assessed yet.