跳到主要内容

docker network

docker network create --driver bridge --subnet=172.18.1.0/16 --gateway=172.18.1.1 hronet

docker network ls

docker network inspect hronet

docker run --network=hronet --ip 172.18.1.100 --name hro-consul -itd --privileged consul