You could leave the port on the container unchanged and just bind a random host port to the container, so the containered application doesn't know anything about the changed port.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments