Update running docker container

Hi,
I’m new to the docker. i want to deploy a war on docker container. If the container is already running, how do i remove the old war and deploy new war?
i know there is a option to update image, remove old container and run new container from the image - but, as far my knowlegde, wont this change the IP address of the container?
If i have a DNS mapping, it’ll be difficult to update the mapping everytime.

Please help me here.

Thanks in advance. :slight_smile: