I assume you want to have an IP assigned to your docker container outside of docker.
First, create a new IP and assign it to your host's interface (we assume your interface is called eth0.
$> ip addr add 10.0.0.99/8 dev eth0
Now, when you fire up the container, specify that address and link it to your docker container:
$> docker run -i -t --rm -p 10.0.0.99:80:8080 base
The -p argument will make docker create an iptables NAT rule which will nat all the traffic matching the destination 10.0.0.99:80 to your docker container on port 8080.
If you need to automate the process and scale it out, consult this resource: https://github.com/jpetazzo/pipework
The docker documentation is a good start: https://docker.github.io/engine/userguide/networking/
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…