title: How to change docker container's source code without restarting it?
body: <p>I have an application where I am using two docker containers. Say container <b>A</b> and <b>B</b>. Now B is dependent upon A. So when I start container 'B', I do mention the ip address of container 'A' in the command line. </p>
  
  <p>Now I have a code change in the container 'A'. If I have to restart the container 'A' after change the source code then after restarting A's ip address will change. For that reason container 'B' will lose connection to 'A' and I have to restart 'B' with new ip address of 'A'.</p>
  
  <p>Is there any docker approach where I can reserve the ip address for container 'A' always? or can I make the code changes without restarting the container 'A'?
  Please suggest.</p>