
- 使用网络模式:
--network=host
docker run -it --network=host --name="Host-Proxy-Test" ubuntu:16.04
export ALL_PROXY='socks5://127.0.0.1:1080'
curl cip.cc

--network=host
docker run -it --network=host --name="Host-Proxy-Test" ubuntu:16.04
export ALL_PROXY='socks5://127.0.0.1:1080'
curl cip.cc
本文标题:docker使用宿主机代理
本文链接:https://www.haomeiwen.com/subject/vzdgactx.html
网友评论