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=188.8.131.52/16 --ip-range=184.108.40.206/24 --gateway=220.127.116.11 private
Next all is left is, pass below arguments to your run command.
docker run --network=private --ip 18.104.22.168 --name container_name container_to_launch
This way your container gets a static ip address which is 22.214.171.124 in this case.
View the available network using command
docker network ls