How to change existing ports for docker container

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

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

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]

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?

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

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.