At the core, docker does not allow you to assign static ip to its containers. You can do so but by defining your own private network. Below tutorial does this:
First of all, you need to define your own network. Something like below:
docker network create --driver=bridge --subnet=184.108.40.206/16 --ip-range=220.127.116.11/24 --gateway=18.104.22.168 private
Next all is left is, pass below arguments to your run command.
docker run --network=private --ip 22.214.171.124 --name container_name container_to_launch
This way your container gets a static ip address which is 126.96.36.199 in this case.
View the available network using command
docker network ls