# Docker image version in Jenkins pipeline

**URL:** <https://community.jenkins.io/t/docker-image-version-in-jenkins-pipeline/707>\
**Category:** Using Jenkins\
**Tags:** question\
**Created:** [November 1, 2021, 2:29pm UTC](https://community.jenkins.io/t/docker-image-version-in-jenkins-pipeline/707 "2021-11-01T14:29:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ananya1101](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@ananya1101](https://community.jenkins.io/u/ananya1101)\
**Post date:** [November 1, 2021, 2:29pm UTC](https://community.jenkins.io/t/docker-image-version-in-jenkins-pipeline/707/1 "2021-11-01T14:29:01Z")

</div>

hi,

We have docker images that are getting stored in ECR in aws. I want to run the Jenkins Pipeline Job to deploy the application with the current image version that it running with by passing it as a parameter and not to pick the latest. How we can write such Jenkins Pipeline.

---

<div class="post-metadata">

**Author:** ![shadycuz](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/shadycuz/32/196_2.png) [@shadycuz](https://community.jenkins.io/u/shadycuz)\
**Post date:** [November 4, 2021, 8:23am UTC](https://community.jenkins.io/t/docker-image-version-in-jenkins-pipeline/707/2 "2021-11-04T08:23:55Z")

</div>

You will need to give more details. Your question is very open ended with lots of possible answers. I can think of many ways to “deploy” a docker container.

1. On baremetal (like ec2)
2. Docker compose
3. Kubernetes
4. Deployment Service (like AWS BeanStalk)

So you will need to be more specific if you want to receive help.

Could you please explain further what “current image version that it running with” means?
