Browse Source

update docker registry

liqian 2 years ago
parent
commit
fdd7fab933
1 changed files with 4 additions and 2 deletions
  1. 4 2
      rov-sever/server/rov-server-update.py

+ 4 - 2
rov-sever/server/rov-server-update.py

@@ -129,7 +129,8 @@ def update():
     global success_count, finished_instance_id_list
     apps = 'rov-server'
     version = sys.argv[1]
-    registry = 'registry-vpc.cn-hangzhou.aliyuncs.com/stuuudy/rov-server:{}'.format(version)
+    # registry = 'registry-vpc.cn-hangzhou.aliyuncs.com/stuuudy/rov-server:{}'.format(version)
+    registry = 'registry.piaoquantv.com/piaoquan/rov-server:{}'.format(version)
     while not q2.empty():
         instance_id = q2.get()
         ipadd = getIpadd(instance_id)
@@ -158,7 +159,8 @@ def update():
 
         try:
             # 登录镜像仓库
-            client.login(username='stuuudys', password='Qingqu@2019', registry='registry-vpc.cn-hangzhou.aliyuncs.com')
+            # client.login(username='stuuudys', password='Qingqu@2019', registry='registry-vpc.cn-hangzhou.aliyuncs.com')
+            client.login(username='admin', password='Harbor12345', registry='registry.piaoquantv.com')
             # 启动一个容器
             client.containers.run(registry, detach=True, cap_add='SYS_PTRACE', network_mode='host', name=apps,
                                   volumes={'/datalog/': {'bind': '/datalog/', 'mode': 'rw'}})