# Build, test and push docker images on cloud.drone.io

**URL:** <https://drone.discourse.group/t/build-test-and-push-docker-images-on-cloud-drone-io/6633>\
**Category:** Drone Support\
**Created:** [December 5, 2018, 1:47pm UTC](https://drone.discourse.group/t/build-test-and-push-docker-images-on-cloud-drone-io/6633 "2018-12-05T13:47:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlesage](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/jlesage/32/5800_2.png) [@jlesage](https://drone.discourse.group/u/jlesage)\
**Post date:** [December 5, 2018, 1:47pm UTC](https://drone.discourse.group/t/build-test-and-push-docker-images-on-cloud-drone-io/6633/1 "2018-12-05T13:47:13Z")

</div>

Docker images can be built and automatically pushed using the docker plugin. However, how one can build, test and then push docker images? Solutions I found so far require the repository to be trusted (to be able to mount volumes and/or use privileged mode) and this is not something possible on [cloud.drone.io](http://cloud.drone.io).

---

<div class="post-metadata">

**Author:** ![davidbyttow](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/davidbyttow/32/4537_2.png) [@davidbyttow](https://drone.discourse.group/u/davidbyttow)\
**Post date:** [December 5, 2018, 2:19pm UTC](https://drone.discourse.group/t/build-test-and-push-docker-images-on-cloud-drone-io/6633/2 "2018-12-05T14:19:29Z")

</div>

You could add your docker username and password to the environment from a secret and push to docker hub that way, I believe.

---

<div class="post-metadata">

**Author:** ![jlesage](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/jlesage/32/5800_2.png) [@jlesage](https://drone.discourse.group/u/jlesage)\
**Post date:** [December 5, 2018, 5:45pm UTC](https://drone.discourse.group/t/build-test-and-push-docker-images-on-cloud-drone-io/6633/3 "2018-12-05T17:45:29Z")

</div>

The issue is not really with pushing the image: it is how can we manually build the image to be able to test it before pushing it.
