# Push plugins/docker images to ecr

**URL:** <https://drone.discourse.group/t/push-plugins-docker-images-to-ecr/10006>\
**Category:** Drone Support\
**Created:** [November 12, 2019, 8:13am UTC](https://drone.discourse.group/t/push-plugins-docker-images-to-ecr/10006 "2019-11-12T08:13:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ASVBPREAUBV](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/asvbpreaubv/32/4995_2.png) [@ASVBPREAUBV](https://drone.discourse.group/u/ASVBPREAUBV)\
**Post date:** [November 12, 2019, 8:13am UTC](https://drone.discourse.group/t/push-plugins-docker-images-to-ecr/10006/1 "2019-11-12T08:13:10Z")

</div>

Im trying to push to AWS ECR from plugins/docker.  
originally i was happy with using just plugins/ecr.  
But as my builds get more complicated i have to use plugins/docker.  
I read this about the AWS repository.  
[http://discuss.harness.io/t/drone-1-0-and-aws-ecr-going-forward/3071/10](http://discuss.harness.io/t/drone-1-0-and-aws-ecr-going-forward/3071/10)

Do i have to do this? I would rather just store my AWS credentials in secrets.

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [November 12, 2019, 2:06pm UTC](https://drone.discourse.group/t/push-plugins-docker-images-to-ecr/10006/2 "2019-11-12T14:06:06Z")

</div>

> Im trying to push to AWS ECR from plugins/docker.  
> originally i was happy with using just plugins/ecr.  
> But as my builds get more complicated i have to use plugins/docker.

the ECR plugin is built on top of the Docker plugin and exposes all the same features and settings. It is not clear why one would have to change from the ECR plugin to the Docker plugin.

> Do i have to do this? I would rather just store my AWS credentials in secrets.

nope, this plugin is only used when you are using an image in your pipeline (e.g. in the `image: ` attribute) and you need to pull from a private ECR registry. This is only used to pull images, not push.
