Child pages
  • Create user-defined verlay networks in Docker
Skip to end of metadata
Go to start of metadata

Run Docker daemons with a key-value store service provider

--cluster-store=consul://170.140.52.33:8500/networks --cluster-advertise=170.140.52.33:2375

Create a user-defined overlay networks in a Docker daemon

docker network create --driver overlay intesbdev

Where intesbdev is a newly defined overlay network

Check the newly defined overlay network

docker network ls

INFO[0107] GET /v1.21/networks                          

NETWORK ID          NAME                DRIVER

7a3c89b937cc        intesbdev           overlay

 

Use a user-defined overlay networks in a Docker daemon

Run a container with the option --net=intesbdev1

 

Remove a user-defined overlay networks in a Docker daemon

docker network rm intesbdev1

  • No labels