How does docker bind public network static IP?
天蓬老师
天蓬老师 2017-05-16 13:17:39
0
2
1134

Currently I am working on a distributed Weibo crawler. Weibo has strict restrictions on account and IP requests. I have seven or eight public IPs, but there are only four servers, so the other four IPs are wasted if not used. So I thought of using a virtual machine or docker to bind the public IP. Since the virtual machine was too bloated, and installing the virtual machine on centos7 was cumbersome, I decided to use docker, and then run my crawler program in docker. How can I make docker bind the static IP of the public network?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
巴扎黑

It is recommended not to use docker. Configuration management is complicated and requires professional network knowledge. Here is another solution recommended for reference. Configure multiple IPv4 addresses on one network card, and then bind each process to an IP. This solution is much simpler. . How to configure multiple IPs can be found on google/baidu, there are many examples.

我想大声告诉你

Use nginx as proxy

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template