当前位置: 首页 > news >正文

docker pull weaviate 国内拉取失败的问题

我是校内网,尝试了

改镜像源

(cooragent) ruiy@CJQ:~/sdb/B/cooragent$ sudo vim /etc/docker/daemon.json 
[sudo] password for ruiy: 
(cooragent) ruiy@CJQ:~/sdb/B/cooragent$ sudo service docker restart
(cooragent) ruiy@CJQ:~/sdb/B/cooragent$ sudo docker info 

 Registry Mirrors:
  https://registry.docker-cn.com/
  http://hub-mirror.c.163.com/
  https://docker.mirrors.ustc.edu.cn/
  https://kfwkfulq.mirror.aliyuncs.com/
 Live Restore Enabled: false

 但是对于拉去 weaviate 没用,

weaviate 向量库有个图存储想试试效果

尝试多次无果

chatgpt建议通过下载 本地安装,

但是没找到 weaviate 的docker 镜像

解决方法

最后终于找到这个镜像拉去成功

wdocker.io/semitechnologies/weaviate 项目中国可用镜像列表 | 高速可靠的 Docker 镜像资源

拉去命令

docker pull      swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/semitechnologies/weaviate:1.31.0

官网 docker配置

1.1 Create a Weaviate database​

Save the following code to a file named docker-compose.yml in your project directory.

image 修改成上面给的

#volumes 是你想存储的卷地址 

#PERSISTENCE_DATA_PATH 持久数据地址   这两个地址按照需求修改好

---
services:weaviate:command:- --host- 0.0.0.0- --port- '8080'- --scheme- httpimage: cr.weaviate.io/semitechnologies/weaviate:1.32.0ports:- 8080:8080- 50051:50051volumes:- weaviate_data:/var/lib/weaviaterestart: on-failure:0environment:QUERY_DEFAULTS_LIMIT: 25AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'PERSISTENCE_DATA_PATH: '/var/lib/weaviate'ENABLE_API_BASED_MODULES: 'true'ENABLE_MODULES: 'text2vec-ollama,generative-ollama'CLUSTER_HOSTNAME: 'node1'
volumes:weaviate_data:
...

Run the following command to start a Weaviate instance using Docker:

docker-compose up -d

1.2 Install a client library​

We recommend using a client library to work with Weaviate. Follow the instructions below to install one of the official client libraries, available in Python, JavaScript/TypeScript, Go, and Java.

  • Python

Install the latest, Python client v4, by adding weaviate-client to your Python environment with pip:

pip install -U weaviate-client

1.3: Connect to Weaviate​

Now you can connect to your Weaviate instance.

The example below shows how to connect to Weaviate and perform a basic operation, like checking the cluster status.

  • Python

quickstart_check_readiness.py

import weaviateclient = weaviate.connect_to_local()print(client.is_ready())  # Should print: `True`client.close()  # Free up resources

python 运行有个true 就连上了,

​编辑  API docs

If you did not see any errors, you are ready to proceed. We will replace the simple cluster status check with more meaningful operations in the next steps.

接下来熟悉操作

http://www.dtcms.com/a/295546.html

相关文章:

  • 面试题(技术面+hr面)
  • odoo欧度软件小程序——删除用户
  • 【Lucene】文件概览
  • 【Java学习|黑马笔记|Day21】IO流综合练习,多线程|常用成员方法,守护线程、礼让线程、插入线程
  • 借助 Amazon Redshift 为具有强大抗风险能力的使用案例提供支持
  • AI结对编程:分布式团队的集体记忆外脑
  • Leetcode力扣解题记录--第2题(加法模拟)
  • (进阶向)Python第十四期OpenCv图像预处理方法[2]
  • ModernBERT如何突破BERT局限?情感分析全流程解析
  • 输电线路微气象在线监测装置:保障电网安全的科技屏障
  • Text2SQL智能问答系统开发(一)
  • 成品电池综合测试仪:保障电池品质与安全的核心工具|深圳鑫达能
  • C++抽象类完全指南
  • 三坐标测量仪高效批量检测轴类传动零件
  • 基于深度学习的图像分类:使用EfficientNet实现高效分类
  • 基础NLP | 常用工具
  • DeepSpeed-FastGen:通过 MII 和 DeepSpeed-Inference 实现大语言模型的高吞吐文本生成
  • 机器翻译编程
  • Unity是如何把3D场景显示到屏幕上的——Unity的渲染过程
  • 实战演练—基于Transformers的NLP解决方案总结
  • Python实现PDF按页分割:灵活拆分文档的技术指南
  • 【Rust线程】Rust高并发编程之线程原理解析与应用实战
  • K8s WebUI 选型:国外 Rancher vs 国内 KubeSphere vs 原生 Dashboard,从部署到使用心得谁更适合企业级场景?
  • 【REACT18.x】CRA+TS+ANTD5.X封装自定义的hooks复用业务功能
  • 初识opencv03——图像预处理2
  • C++vector(2)
  • TreeMap一致性哈希环设计与实现 —— 高可用的数据分布引擎
  • 【RAG优化】RAG应用中图文表格混合内容的终极检索与生成策略
  • 【AI】Jupyterlab中打开文件夹的方式
  • 元宇宙工厂网页新形态:3D场景嵌入与WebGL交互的轻量化实现