# How to change existing ports for docker container

**URL:** <https://www.dynamicsuser.net/t/how-to-change-existing-ports-for-docker-container/66541>\
**Category:** Technical Forum\
**Created:** [January 17, 2019, 2:39pm UTC](https://www.dynamicsuser.net/t/how-to-change-existing-ports-for-docker-container/66541 "2019-01-17T14:39:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalyantupe45](https://avatars.discourse-cdn.com/v4/letter/k/8baadc/32.png) [@kalyantupe45](https://www.dynamicsuser.net/u/kalyantupe45)\
**Post date:** [January 17, 2019, 2:39pm UTC](https://www.dynamicsuser.net/t/how-to-change-existing-ports-for-docker-container/66541/1 "2019-01-17T14:39:52Z")

</div>

I have installed Business Central through Docker. By default it takes ports 7045,7046,7047,7048,7049. But Now I want to change this ports to 6045,6046,6047,6048,6049.

How I do this.Please help

---

<div class="post-metadata">

**Author:** ![PalleA](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@PalleA](https://www.dynamicsuser.net/u/PalleA)\
**Post date:** [January 17, 2019, 6:46pm UTC](https://www.dynamicsuser.net/t/how-to-change-existing-ports-for-docker-container/66541/2 "2019-01-17T18:46:28Z")

</div>

Why do you want to do that??? It makes no sense to do that at all…

---

<div class="post-metadata">

**Author:** ![RedFoxUA](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@RedFoxUA](https://www.dynamicsuser.net/u/RedFoxUA)\
**Post date:** [January 17, 2019, 6:52pm UTC](https://www.dynamicsuser.net/t/how-to-change-existing-ports-for-docker-container/66541/3 "2019-01-17T18:52:30Z")

</div>

> [@](#):
>
> ports 7045,7046,7047,7048,7049

I think the issue with port conflicts - it is standard NAV installation ports.

And I think I’m interested in this point too [emoticon:c4563cd7d5574777a71c318021cbbcc8]

---

<div class="post-metadata">

**Author:** ![admin1](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/admin1/32/7476_2.png) [@admin1](https://www.dynamicsuser.net/u/admin1)\
**Post date:** [January 17, 2019, 6:59pm UTC](https://www.dynamicsuser.net/t/how-to-change-existing-ports-for-docker-container/66541/4 "2019-01-17T18:59:08Z")

</div>

You have to change it via remote Powershell into the container.

But as Palle, then I’m just asking **Why in the world would you want to do this?**

---

<div class="post-metadata">

**Author:** ![PalleA](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@PalleA](https://www.dynamicsuser.net/u/PalleA)\
**Post date:** [January 17, 2019, 8:25pm UTC](https://www.dynamicsuser.net/t/how-to-change-existing-ports-for-docker-container/66541/5 "2019-01-17T20:25:30Z")

</div>

Because every Docker container gets it own IP-address, then there cannot be any conflicts in port numbers…

---

<div class="post-metadata">

**Author:** ![admin1](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/admin1/32/7476_2.png) [@admin1](https://www.dynamicsuser.net/u/admin1)\
**Post date:** [January 18, 2019, 7:39pm UTC](https://www.dynamicsuser.net/t/how-to-change-existing-ports-for-docker-container/66541/6 "2019-01-18T19:39:27Z")

</div>

> [@](#):
>
> I think the issue with port conflicts - it is standard NAV installation ports.

Yes there is an issue with port conflict and standard NAV installations. But not with Docker. You will never have multiple server instances inside a Docker image, so you will never have port conflict. Each docker is a server in itself.
