Public | Automated Build

Last pushed: 9 months ago
Short Description
Weave Daemon running in Docker
Full Description

Weave Daemon running in Docker


  • Build your SDN private network upon any network (
  • Expose host to SDN network
  • Route all traffic through SDN network (you need to setup a NAT gateway and join the weave network)
  • Add any container with env WEAVE_CIDR to the SDN network (in some circumstances you need a watch dog to run the weave attach command for you, e.g. you do not want to use weave plugin or weave proxy for compatibilities)
  • Run as daemon using docker

Example Usage

version: '2'

    image: bestmike007/weave-daemon:1.9.7
    restart: always
    privileged: true
    network_mode: host
      - /var/run/docker.sock:/var/run/docker.sock
      - WEAVE_ROUTER_CMD=--ipalloc-range
docker run -d --name=weave-daemon --net=host --privileged --restart=always \
  -e WEAVE_ROUTER_CMD="--ipalloc-range" \
  -v /var/run/docker.sock:/var/run/docker.sock \

Environment WEAVE_ROUTER_CMD is required to setup your weave network and weave plugin. Others are optional.

If you need to setup WEAVE_HOST_CIDR or WEAVE_ROUTE_GATEWAY you need to run this container in privileged mode along with host network. If WEAVE_ROUTE_GATEWAY (which act as a NAT gateway in the weave network) is set, host default route gateway will be changed to this value so that all traffic will go through the weave network.

Add SDN IP to Container

In some cases you need to attach weave network to container(s), you can run weave daemon along with those containers and simply set up a WEAVE_CIDR env for any containers you need a fixed weave network ip attached.

docker run -d --restart=always -e WEAVE_CIDR= alpine sh
Docker Pull Command
Source Repository