Procházet zdrojové kódy

更新 'init-per.sh'

更新docker镜像地址
胡增文 před 5 měsíci
rodič
revize
b5c84521f5
1 změnil soubory, kde provedl 7 přidání a 7 odebrání
  1. 7 7
      init-per.sh

+ 7 - 7
init-per.sh

@@ -86,7 +86,7 @@ if $create_ptr; then
   --restart=always \
   -v /var/run/docker.sock:/var/run/docker.sock \
   -v /var/lib/docker/volumes:/var/lib/docker/volumes \
-  portainer/agent:2.19.1
+  nas.fast-fun.cn:5000/portainer/agent:2.19.1
 fi
 
 # 判断内网穿透服务
@@ -143,7 +143,7 @@ remote_port = 230$port
 EOF
 fi
 cat <<EOF > Dockerfile
-FROM snowdreamtech/frpc:0.50.0
+FROM nas.fast-fun.cn:5000/snowdreamtech/frpc:0.50.0
 COPY frpc.ini /etc/frp/frpc.ini
 EOF
 sudo docker build -t frpc .
@@ -181,7 +181,7 @@ ip -o link show | awk -F': ' '{print $2}' | while read interface; do
     if [ -n "$ip" ] && [ -n "$mac" ]; then
         subnet=$(echo "$ip" | awk -F'/' '{print $1}' | awk -F'.' '{print $1"."$2"."$3}')
         echo "网卡名称: $interface,MAC地址: $mac,IP地址: $(echo $ip | cut -d '/' -f 1), subnet: $subnet"
-        sudo docker run -v openvpn:/etc/openvpn --privileged --rm jaikuai/openvpn-tap:1.0.1 ovpn_genconfig -u udp://120.27.243.131:101$port \
+        sudo docker run -v openvpn:/etc/openvpn --privileged --rm nas.fast-fun.cn:5000/jaikuai/openvpn-tap:1.0.1 ovpn_genconfig -u udp://120.27.243.131:101$port \
         -t -B -D -d -b \
         --bridge-name 'br0' \
         --bridge-eth-if $interface \
@@ -204,8 +204,8 @@ ip -o link show | awk -F': ' '{print $2}' | while read interface; do
 done
 
 # 密码: qx123456
-sudo docker run -v openvpn:/etc/openvpn --rm -it jaikuai/openvpn-tap:1.0.1 ovpn_initpki
-sudo docker run -v openvpn:/etc/openvpn --privileged --network host --cap-add=NET_ADMIN --restart=always --name vpn -d jaikuai/openvpn-tap:1.0.1
+sudo docker run -v openvpn:/etc/openvpn --rm -it nas.fast-fun.cn:5000/jaikuai/openvpn-tap:1.0.1 ovpn_initpki
+sudo docker run -v openvpn:/etc/openvpn --privileged --network host --cap-add=NET_ADMIN --restart=always --name vpn -d nas.fast-fun.cn:5000/jaikuai/openvpn-tap:1.0.1
 
 # 单网卡补充默认路由 
 # sudo ip route add default via 192.168.0.1
@@ -217,8 +217,8 @@ user=\$1
 array=(\${user//,/ })
 for item in \${array[@]}
 do
-    sudo docker run -v openvpn:/etc/openvpn --rm -it jaikuai/openvpn-tap:1.0.1 easyrsa build-client-full \$item-$proj nopass
-    sudo docker run -v openvpn:/etc/openvpn --log-driver=none --rm jaikuai/openvpn-tap:1.0.1 ovpn_getclient \$item-$proj > \$item-$proj.ovpn
+    sudo docker run -v openvpn:/etc/openvpn --rm -it nas.fast-fun.cn:5000/jaikuai/openvpn-tap:1.0.1 easyrsa build-client-full \$item-$proj nopass
+    sudo docker run -v openvpn:/etc/openvpn --log-driver=none --rm nas.fast-fun.cn:5000/jaikuai/openvpn-tap:1.0.1 ovpn_getclient \$item-$proj > \$item-$proj.ovpn
 done
 
 EOF