Static IP on Docker containers

Thank you for your reply.

The problem of using SSH is that my docker images are already in use with environment variables.

What is the solution ?

Do I have to make a docker composed of each docker with environment variables and then add the notion of static ip?

Thanks