PGvector Docker 容器无法启动!

/ 默认分类 / 没有评论 / 383浏览

用docker安装pgvector

docker run --name pgvector \
    -e POSTGRES_PASSWORD=postgres \
    -p 5432:5432 \
	-d pgvector/pgvector:pg16

报错

initdb: error: program "postgres" is needed by initdb but was not found in the same directory as "/usr/lib/postgresql/16/bin/initdb"

解决方案

增加 privileged=true 可以解决