‘Docker’ debug session with static IP

Hi, we have a tool that wants to connect to our application using ipv4:port, when starting my application, clion seems to start the container 4 times, I guess 1 time for the debugger, 1 time for the build, 1 time for the application to be debugged and one remaining (?). How can i assign a static IP to the container that runs the application which i wish to debug? And why does clion start so many containers?