This is so cool I can hardly stand it.
In Docker 1.10, the awesome libnetwork team added the ability to specify a specific IP for a container. If you want to see the pull request it’s here: docker/docker#19001.
I have a IP Block on OVH for my server with 16 extra public IPs. I totally use these for good and not for evil.
But to use these previously with Docker containers meant hackery with the awesome pipework. Or even worse some homegrown, Jess bash scripts.
But now MY LIFE JUST GOT SO MUCH EASIER. Let me show you how:
```
$ docker network create --subnet 203.0.113.0/24 --gateway 203.0.113.254 iptastic
$ docker run --rm -it --net iptastic --ip 203.0.113.2 nginx
$ curl 203.0.113.2
```
It’s so amazing I can rewrite tupperwarewithspears to use this :D