# IPs for all the Things

DevFeed: [IPs for all the Things](<https://devfeed.tech/articles/ips-for-all-the-things-35175.md>)

Original publisher: [Read original article](<https://blog.jessfraz.com/post/ips-for-all-the-things/>)

Published: 2016-01-28T20:00:14Z

Content type: tutorial

Language: en

Sources: [Jessie Frazelle](<https://devfeed.tech/sources/jessie-frazelle.md>)

Topics: [Docker](<https://devfeed.tech/topics/docker.md>), [Containers](<https://devfeed.tech/topics/containers.md>), [Network](<https://devfeed.tech/topics/network.md>), [nginx](<https://devfeed.tech/topics/nginx.md>), [cURL](<https://devfeed.tech/topics/curl.md>)

Tags: [containers](<https://devfeed.tech/tags/containers.md>), [curl](<https://devfeed.tech/tags/curl.md>), [docker](<https://devfeed.tech/tags/docker.md>), [gateway](<https://devfeed.tech/tags/gateway.md>), [network](<https://devfeed.tech/tags/network.md>), [nginx](<https://devfeed.tech/tags/nginx.md>)

## AI overview

A tutorial on Docker 1.10's support for assigning specific IP addresses to containers. It demonstrates creating a bridge network with a subnet and gateway, then running an nginx container with a designated IP and testing it with curl.

## Source excerpt

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: # create a new bridge network with your subnet and gateway for your ip block $ docker network create --subnet 203.0.113.0/24 --gateway 203.0.113.254 iptastic # run a nginx container with a specific ip in that block $ docker run --rm -it --net iptastic --ip 203.0.113.2 nginx # curl the ip from any other place (assuming this is a public ip block duh) $ curl 203.0.113.2 # BOOM golden It's so amazing I can rewrite tupperwarewithspears to use this :D