build custom network
docker run --net mynet123 --ip 192.168.2.200 -it ubuntu bash
assign static ip to container
docker run --net mynet123 --ip=192.168.2.200 \
--volumes-from storedata \
-it --hostname=hadoop-master hadoop-master /bin/zsh
docker run --net mynet123 --ip 192.168.2.200 -it ubuntu bash
docker run --net mynet123 --ip=192.168.2.200 \
--volumes-from storedata \
-it --hostname=hadoop-master hadoop-master /bin/zsh
本文标题:docker staic network
本文链接:https://www.haomeiwen.com/subject/cozoaxtx.html
网友评论