Skip to content

Instantly share code, notes, and snippets.

@absane
Created February 2, 2022 16:43
Show Gist options
  • Save absane/9bfdba96e642e26a02a2e60c30857fe4 to your computer and use it in GitHub Desktop.
Save absane/9bfdba96e642e26a02a2e60c30857fe4 to your computer and use it in GitHub Desktop.
sudo docker network create -d macvlan \
--subnet=192.168.1.0/24 \
--gateway=192.168.1.1 \
-o parent=ovs_eth3 net_gateway
sudo docker run -d \
--name=unifi-controller \
-e PUID=1000 \
-e PGID=1000 \
-p 3478:3478/udp \
-p 10001:10001/udp \
-p 8080:8080 \
-p 8443:8443 \
-p 1900:1900/udp \
-p 8843:8843 \
-p 8880:8880 \
-p 6789:6789 \
-p 5514:5514/udp \
-v /volume1/docker/unifi-controller/:/config/ \
--restart unless-stopped \
--net net_gateway --ip 192.168.1.2 \
linuxserver/unifi-controller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment