OpenWRT和群晖Docker部署甜糖心愿
群晖
启用open switch
打开SSH
创建macnet
docker network create -d macvlan --subnet=10.0.0.0/24 --gateway=10.0.0.1 -o parent=ovs_eth0 -o macvlan_mode=bridge macnet
部署Docker A
docker run -itd \
-v /volume1/docker/ttnodeA:/mnts \
--name ttnodeA \
--hostname ttnodeA \
--net=macnet --ip=10.0.0.71 --dns=114.114.114.114 --mac-address 0C:69:C6:C7:C4:02 \
--privileged=true \
--restart=always \
ericwang2006/ttnode
部署Docker B
docker run -itd \
-v /volume1/docker/ttnodeB:/mnts \
--name ttnodeB \
--hostname ttnodeB \
--net=macnet --ip=10.0.0.72 --dns=114.114.114.114 --mac-address B6:FF:EB:0B:32:9F \
--privileged=true \
--restart=always \
ericwang2006/ttnode
OpenWRT
创建macnet
docker network create -d macvlan --subnet=10.0.0.0/24 --gateway=10.0.0.1 -o parent=br-lan -o macvlan_mode=bridge macnet
部署Docker A
docker run -itd \
-v /opt/ttnodeA:/mnts \
--name ttnodeA \
--hostname ttnodeA \
--net=macnet \
--ip=10.0.0.81 \
--mac-address E8:DC:DC:F9:D3:93 \
-p 10432:1043 \
--privileged=true \
--restart=always \
ericwang2006/ttnode
部署Docker B
docker run -itd \
-v /opt/ttnodeB:/mnts \
--name ttnodeB \
--hostname ttnodeB \
--net=macnet \
--ip=10.0.0.82 \
--mac-address C3:E7:D1:DF:83:61 \
-p 10432:1043 \
--privileged=true \
--restart=always \
ericwang2006/ttnode