当前位置: 首页 > 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.lryc.cn/news/599037.html

相关文章:

  • java中如何返回一个可以执行返回操作(return action)的函数或对象
  • rust-枚举
  • 技术赋能多元探索:我的技术成长与行业洞察
  • 【安卓笔记】lifecycle与viewModel
  • MySQL的底层原理--InnoDB记录存储结构
  • Ollama(5)服务接口压力测试
  • PostgreSQL 保留关键字冲突问题:语法错误 在 “user“ 或附近的 LINE 1: CREATE TABLE user
  • Windchill用SQL获取所有组织下的所有用户
  • CIRL:因果启发的表征学习框架——从域泛化到奖励分解的因果革命
  • Linux进程间通信:管道机制全方位解读
  • 【MediaTek】AN7563编译wlan_hwifi出现en_npu.c:42:10: fatal error:
  • 【STM32项目】水质检测
  • 【数组的定义与使用】
  • 使用Python采集招聘网站数据并智能分析求职信息
  • AI大模型各类概念扫盲
  • 【C++】标准模板库(STL)—— 学习算法的利器
  • 算法题(179):单调栈
  • C++抽象类完全指南
  • ARM汇编常见伪指令及其用法示例
  • Datawhale AI数据分析 作业2
  • linux入门 相关linux系统操作命令(二)--文件管理系统 ubuntu22.04
  • DS18B20扩展:在数码管上显示温度时包含小数部分
  • MPI并行梯形积分法:原理、实现与优化指南
  • 【PyTorch】图像二分类项目-部署
  • 从零开始学 Pandas:数据处理核心操作指南
  • 清除浮动以及原理
  • cri-docker部署高版本k8s
  • 闲庭信步使用图像验证平台加速FPGA的开发:第三十四课——车牌识别的FPGA实现(6)叠加车牌识别的信息
  • 5.7 input子系统
  • RocketMQ集群高级特性