# Deploying a Docker image on multiple docker hosts

**URL:** <https://forums.docker.com/t/deploying-a-docker-image-on-multiple-docker-hosts/23051>\
**Category:** General\
**Tags:** docker\
**Created:** [October 6, 2016, 4:00am UTC](https://forums.docker.com/t/deploying-a-docker-image-on-multiple-docker-hosts/23051 "2016-10-06T04:00:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abrahamjaison](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/abrahamjaison/32/10597_2.png) [@abrahamjaison](https://forums.docker.com/u/abrahamjaison)\
**Post date:** [October 6, 2016, 4:00am UTC](https://forums.docker.com/t/deploying-a-docker-image-on-multiple-docker-hosts/23051/1 "2016-10-06T04:00:03Z")

</div>

Hi all,

I have created a docker image - An application of my own, say “mydockerimage”…  
I have it in the local repository of my machine. Now I need to deploy or run this docker image as containers on two other machines connected to my computer which also have the docker engine installed. So its like, I have a network of 3 computers on each I have got docker engine installed. I have my image stored in one of those computers and I want to deploy the docker image on the other two machines connected via the network. How will I be able to achieve it?

Thanks

---

<div class="post-metadata">

**Author:** ![dmaze](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@dmaze](https://forums.docker.com/u/dmaze)\
**Post date:** [October 6, 2016, 12:00pm UTC](https://forums.docker.com/t/deploying-a-docker-image-on-multiple-docker-hosts/23051/2 "2016-10-06T12:00:17Z")

</div>

> [@abrahamjaison](#):
>
> I have created a docker image - An application of my own, say “mydockerimage”…  
> I have it in the local repository of my machine. Now I need to deploy or run this docker image as containers on two other machines connected to my computer which also have the docker engine installed.

Three options:

(1) Check your `Dockerfile` and whatever you need to build the supporting artifacts into source control. (Which you’ve probably done already.) Check out the repository on the other systems and `docker build` it.

(2) `docker save` your image into a tar file and scp it to the other systems, where you can `docker load` it. (This is probably the most manual approach of the three, but requires the least infrastructure.)

(3) Set up a private registry. `docker tag myimage registry.example.com/myimage; docker push registry.example.com/myimage`. Then on your other systems, you can `docker run registry.example.com/myimage` and Docker will automatically pull it for you.

---

<div class="post-metadata">

**Author:** ![abrahamjaison](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/abrahamjaison/32/10597_2.png) [@abrahamjaison](https://forums.docker.com/u/abrahamjaison)\
**Post date:** [October 14, 2016, 9:02am UTC](https://forums.docker.com/t/deploying-a-docker-image-on-multiple-docker-hosts/23051/3 "2016-10-14T09:02:13Z")

</div>

Thanks… 🙂 Well… I was thinking of using something like Docker Swarm to create a cluster first and then deploy the images to each one. But not sure how to work with it…`

---

<div class="post-metadata">

**Author:** ![mayursinh](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@mayursinh](https://forums.docker.com/u/mayursinh)\
**Post date:** [December 18, 2016, 2:48pm UTC](https://forums.docker.com/t/deploying-a-docker-image-on-multiple-docker-hosts/23051/4 "2016-12-18T14:48:41Z")

</div>

Have you get Solution for this?? I am also having same problem …thanks in advance
