# Docker Run - wg-easy
The easiest way to run WireGuard VPN + Web-based Admin UI.
Author: WireGuard Easy

# Docker Run

To setup the IPv6 Network, simply run once:

    docker network create \
      -d bridge --ipv6 \
      -d default \
      --subnet 10.42.42.0/24 \
      --subnet fdcc:ad94:bacf:61a3::/64 wg \

To automatically install & run `wg-easy`, simply run:

    docker run -d \
      --net wg \
      -e INSECURE=true \
      --name wg-easy \
      --ip6 fdcc:ad94:bacf:61a3::2a \
      --ip 10.42.42.42 \
      -v ~/.wg-easy:/etc/wireguard \
      -v /lib/modules:/lib/modules:ro \
      -p 51820:51820/udp \
      -p 51821:51821/tcp \
      --cap-add NET_ADMIN \
      --cap-add SYS_MODULE \
      --sysctl net.ipv4.ip_forward=1 \
      --sysctl net.ipv4.conf.all.src_valid_mark=1 \
      --sysctl net.ipv6.conf.all.disable_ipv6=0 \
      --sysctl net.ipv6.conf.all.forwarding=1 \
      --sysctl net.ipv6.conf.default.forwarding=1 \
      --restart unless-stopped \
      ghcr.io/wg-easy/wg-easy:15

The Web UI will now be available at http://0.0.0.0:51821.