docker.io/pgvector/pgvector:pg12 linux/amd64

docker.io/pgvector/pgvector:pg12 - 国内下载镜像源 浏览次数:17
PGVector 是一个用于在 Docker 容器中运行 PostgreSQL Vector 搜索引擎的镜像。.html>PGVector 提供了一个基于 PostgreSQL 的实时搜索解决方案,支持对大规模数据进行实时搜索和检索。PGVector 使用 PostgreSQL 作为存储引擎,并且提供了一个基于 Lucene 的搜索引擎,可以在多种语言中使用。PGVector 可以用于构建各种类型的搜索应用程序,如企业搜索、社交媒体搜索等。
源镜像 docker.io/pgvector/pgvector:pg12
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pgvector/pgvector:pg12
镜像ID sha256:180e13934084d690d712edc6b1d29ce15d802551ba8c81d5469ba25bc3c03f67
镜像TAG pg12
大小 421.30MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD postgres
启动入口 docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 17 次
贡献者
镜像创建 2024-08-05T17:49:21.611523091Z
同步时间 2025-04-03 16:23
更新时间 2025-04-05 01:38
开放端口
5432/tcp
目录挂载
/var/lib/postgresql/data
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/12/bin GOSU_VERSION=1.17 LANG=en_US.utf8 PG_MAJOR=12 PG_VERSION=12.19-1.pgdg120+1 PGDATA=/var/lib/postgresql/data

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pgvector/pgvector:pg12
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pgvector/pgvector:pg12  docker.io/pgvector/pgvector:pg12

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pgvector/pgvector:pg12
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pgvector/pgvector:pg12  docker.io/pgvector/pgvector:pg12

Shell快速替换命令

sed -i 's#pgvector/pgvector:pg12#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pgvector/pgvector:pg12#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pgvector/pgvector:pg12 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pgvector/pgvector:pg12  docker.io/pgvector/pgvector:pg12'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pgvector/pgvector:pg12 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pgvector/pgvector:pg12  docker.io/pgvector/pgvector:pg12'

镜像构建历史


# 2024-08-06 01:49:21  2.16MB 执行命令并创建新的镜像层
RUN |1 PG_MAJOR=12 /bin/sh -c apt-get update && 		apt-mark hold locales && 		apt-get install -y --no-install-recommends build-essential postgresql-server-dev-$PG_MAJOR && 		cd /tmp/pgvector && 		make clean && 		make OPTFLAGS="" && 		make install && 		mkdir /usr/share/doc/pgvector && 		cp LICENSE README.md /usr/share/doc/pgvector && 		rm -r /tmp/pgvector && 		apt-get remove -y build-essential postgresql-server-dev-$PG_MAJOR && 		apt-get autoremove -y && 		apt-mark unhold locales && 		rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2024-08-06 01:48:22  619.88KB 复制新文件或目录到容器中
COPY . /tmp/pgvector # buildkit
                        
# 2024-08-06 01:48:22  0.00B 定义构建参数
ARG PG_MAJOR
                        
# 2024-05-10 02:02:23  0.00B 设置默认要执行的命令
CMD ["postgres"]
                        
# 2024-05-10 02:02:23  0.00B 声明容器运行时监听的端口
EXPOSE map[5432/tcp:{}]
                        
# 2024-05-10 02:02:23  0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGINT
                        
# 2024-05-10 02:02:23  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2024-05-10 02:02:23  23.00B 执行命令并创建新的镜像层
RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
                        
# 2024-05-10 02:02:23  14.96KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
                        
# 2024-05-10 02:02:23  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/var/lib/postgresql/data]
                        
# 2024-05-10 02:02:23  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
                        
# 2024-05-10 02:02:23  0.00B 设置环境变量 PGDATA
ENV PGDATA=/var/lib/postgresql/data
                        
# 2024-05-10 02:02:23  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
                        
# 2024-05-10 02:02:23  53.99KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	dpkg-divert --add --rename --divert "/usr/share/postgresql/postgresql.conf.sample.dpkg" "/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample"; 	cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; 	ln -sv ../postgresql.conf.sample "/usr/share/postgresql/$PG_MAJOR/"; 	sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; 	grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample # buildkit
                        
# 2024-05-10 02:02:23  301.21MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex; 		export PYTHONDONTWRITEBYTECODE=1; 		dpkgArch="$(dpkg --print-architecture)"; 	aptRepo="[ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main $PG_MAJOR"; 	case "$dpkgArch" in 		amd64 | arm64 | ppc64el | s390x) 			echo "deb $aptRepo" > /etc/apt/sources.list.d/pgdg.list; 			apt-get update; 			;; 		*) 			echo "deb-src $aptRepo" > /etc/apt/sources.list.d/pgdg.list; 						savedAptMark="$(apt-mark showmanual)"; 						tempDir="$(mktemp -d)"; 			cd "$tempDir"; 						apt-get update; 			apt-get install -y --no-install-recommends dpkg-dev; 			echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list; 			_update_repo() { 				dpkg-scanpackages . > Packages; 				apt-get -o Acquire::GzipIndexes=false update; 			}; 			_update_repo; 						nproc="$(nproc)"; 			export DEB_BUILD_OPTIONS="nocheck parallel=$nproc"; 			apt-get build-dep -y postgresql-common pgdg-keyring; 			apt-get source --compile postgresql-common pgdg-keyring; 			_update_repo; 			apt-get build-dep -y "postgresql-$PG_MAJOR=$PG_VERSION"; 			apt-get source --compile "postgresql-$PG_MAJOR=$PG_VERSION"; 									apt-mark showmanual | xargs apt-mark auto > /dev/null; 			apt-mark manual $savedAptMark; 						ls -lAFh; 			_update_repo; 			grep '^Package: ' Packages; 			cd /; 			;; 	esac; 		apt-get install -y --no-install-recommends postgresql-common; 	sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf; 	apt-get install -y --no-install-recommends 		"postgresql-$PG_MAJOR=$PG_VERSION" 	; 		rm -rf /var/lib/apt/lists/*; 		if [ -n "$tempDir" ]; then 		apt-get purge -y --auto-remove; 		rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; 	fi; 		find /usr -name '*.pyc' -type f -exec bash -c 'for pyc; do dpkg -S "$pyc" &> /dev/null || rm -vf "$pyc"; done' -- '{}' +; 		postgres --version # buildkit
                        
# 2024-05-10 02:02:23  0.00B 设置环境变量 PG_VERSION
ENV PG_VERSION=12.19-1.pgdg120+1
                        
# 2024-05-10 02:02:23  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/12/bin
                        
# 2024-05-10 02:02:23  0.00B 设置环境变量 PG_MAJOR
ENV PG_MAJOR=12
                        
# 2024-05-10 02:02:23  3.98KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex; 	key='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'; 	export GNUPGHOME="$(mktemp -d)"; 	mkdir -p /usr/local/share/keyrings/; 	gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; 	gpg --batch --export --armor "$key" > /usr/local/share/keyrings/postgres.gpg.asc; 	gpgconf --kill all; 	rm -rf "$GNUPGHOME" # buildkit
                        
# 2024-05-10 02:02:23  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
                        
# 2024-05-10 02:02:23  3.18MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		libnss-wrapper 		xz-utils 		zstd 	; 	rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2024-05-10 02:02:23  0.00B 设置环境变量 LANG
ENV LANG=en_US.utf8
                        
# 2024-05-10 02:02:23  25.19MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	if [ -f /etc/dpkg/dpkg.cfg.d/docker ]; then 		grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; 		sed -ri '/\/usr\/share\/locale/d' /etc/dpkg/dpkg.cfg.d/docker; 		! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; 	fi; 	apt-get update; apt-get install -y --no-install-recommends locales; rm -rf /var/lib/apt/lists/*; 	echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen; 	locale-gen; 	locale -a | grep 'en_US.utf8' # buildkit
                        
# 2024-05-10 02:02:23  4.16MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	savedAptMark="$(apt-mark showmanual)"; 	apt-get update; 	apt-get install -y --no-install-recommends ca-certificates wget; 	rm -rf /var/lib/apt/lists/*; 	dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; 	wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; 	wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; 	export GNUPGHOME="$(mktemp -d)"; 	gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; 	gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; 	gpgconf --kill all; 	rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; 	apt-mark auto '.*' > /dev/null; 	[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; 	apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; 	chmod +x /usr/local/bin/gosu; 	gosu --version; 	gosu nobody true # buildkit
                        
# 2024-05-10 02:02:23  0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.17
                        
# 2024-05-10 02:02:23  9.93MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex; 	apt-get update; 	apt-get install -y --no-install-recommends 		gnupg 		less 	; 	rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2024-05-10 02:02:23  4.32KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	groupadd -r postgres --gid=999; 	useradd -r -g postgres --uid=999 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres; 	mkdir -p /var/lib/postgresql; 	chown -R postgres:postgres /var/lib/postgresql # buildkit
                        
# 2024-05-10 02:02:23  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2024-05-10 02:02:23  74.78MB 
/bin/sh -c #(nop) ADD file:6c4730e7b12278bc7eb83b3b9d659437c92c42fc7ee70922ae8c4bebfb56a602 in / 
                        
                    

镜像信息

{
    "Id": "sha256:180e13934084d690d712edc6b1d29ce15d802551ba8c81d5469ba25bc3c03f67",
    "RepoTags": [
        "pgvector/pgvector:pg12",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pgvector/pgvector:pg12"
    ],
    "RepoDigests": [
        "pgvector/pgvector@sha256:d74a9ac7bdfdaf5d0c10a720aa65e22565c8f327f70db13f28be01494a872b14",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pgvector/pgvector@sha256:8af82e9663eb2e83be09c5562fba4da18c4d17bc1628f8dde6d23dd15dd0a633"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-08-05T17:49:21.611523091Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "5432/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/12/bin",
            "GOSU_VERSION=1.17",
            "LANG=en_US.utf8",
            "PG_MAJOR=12",
            "PG_VERSION=12.19-1.pgdg120+1",
            "PGDATA=/var/lib/postgresql/data"
        ],
        "Cmd": [
            "postgres"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/var/lib/postgresql/data": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null,
        "StopSignal": "SIGINT"
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 421304150,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/ef9401a24cb8618e851728b7eac8314ac6eb448f286fb2dd9920871120149247/diff:/var/lib/docker/overlay2/4c3d2b3b1aa103fd4ba807f12f49f249665744baf3b85a6cb128919dbb03870c/diff:/var/lib/docker/overlay2/f133fbc1fab7eb621b5eeabae6df92a2cf4372d8aef2110901ccd2bcd138927b/diff:/var/lib/docker/overlay2/24e507589724e3ce4d25f021349c07e06d16a329a952931a78cac3175f4d1d4c/diff:/var/lib/docker/overlay2/75616f87dbb70fb74affca43c75dc83089e40b5338695b4269fe1bab680c2ab5/diff:/var/lib/docker/overlay2/f00656a26691574cf2df4f285c2eaee80632fedfd0147c9c5fb18b862a501c01/diff:/var/lib/docker/overlay2/1dddf7f1ce44be35624336f2edd5895bc7883837260b9f67f641922075667973/diff:/var/lib/docker/overlay2/dbdd07dffaa18e2bbb2af88d229c727a5a1c696c24d21f133ca042bcaed43e42/diff:/var/lib/docker/overlay2/3e41b97aede362e633cc207d7443c6e5cb110d46bc4697c6cf375d06e7a31a85/diff:/var/lib/docker/overlay2/8205a5b3899381d84e7afb5438c5eebd4ab3f4a4de04d8bca777e6790f19d67c/diff:/var/lib/docker/overlay2/4a707e8707f664c06cc3aef9973c903b4e2a64d6cd322f76fe0fa95e55977a60/diff:/var/lib/docker/overlay2/cac51fadf87d092db88db7a10fbd6c1af3c801171251f91f3efbafbede86e68e/diff:/var/lib/docker/overlay2/4133e56207bf79f6a321e300ebd4e7d2b8f7049070f6a7b75c7d244d6812ffa9/diff:/var/lib/docker/overlay2/cb8aa340d7487851ab8e747f039b5a0eecffd20f01026602d2fb8ca8d23f7c0b/diff:/var/lib/docker/overlay2/030d2ca4912bb8257736d4e7629063910d103cb180f0cf49b5b9b13cf9e87bea/diff",
            "MergedDir": "/var/lib/docker/overlay2/96e392ef80bc60d4273122b56596916eefb610563726d2a5d0bd5076a7fe7cc1/merged",
            "UpperDir": "/var/lib/docker/overlay2/96e392ef80bc60d4273122b56596916eefb610563726d2a5d0bd5076a7fe7cc1/diff",
            "WorkDir": "/var/lib/docker/overlay2/96e392ef80bc60d4273122b56596916eefb610563726d2a5d0bd5076a7fe7cc1/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:e0781bc8667fb5ebf954df4ae52997f6f5568ec9f07e21e5db7c9d324ed41e1f",
            "sha256:ffff242309b45d09951e4c1c5ee570a7fe91830e38ad07eb3c54b77ae599cf53",
            "sha256:304e63d4a78c4c84716044129b95b678bd0058edb21295ed24680f2b18db5aff",
            "sha256:c74f1d4d630af03ce4b04c43e87b2e5753475fe99488cd330d428918b61ae763",
            "sha256:0f9ffe44ee5c52061bd86885f3fc4137cc2f956cb9010418c767dc61f4c576fd",
            "sha256:2ad378562a2d43d0b4083a31d92c88f1ec131ec4f8b0f7a1bcdb3c7f3e7767eb",
            "sha256:93bb50f9a2173d090c07cee1a58befb045cea80e98c21104ab2792d12d7c2c03",
            "sha256:08df831adf52981c4b5cc0ff43fa2cc27bc857484f7bd509bade68a3049303ef",
            "sha256:a2c7b30d746cdbcd2f371de8db171d59dea966b7c48909134e5c9e467420df7e",
            "sha256:5326418f37bb60b0574a9933ec6b57af4b877098b22062dd1bf87df719b82081",
            "sha256:e62afabdf0d2748c456208edc26c61013e00e12a1bd00f7a6db8c35356ff71bd",
            "sha256:6f243ca172940eda4b1af3ff588457683824f9a4809d7062d5c60ed5b10dbafe",
            "sha256:76fa81909294ac2b3baf1176c1b6754f2cf3d94abd0ebe90df59f7f2b7273f77",
            "sha256:92c68d39dffe38e72a1108cd05775282b26479fad3ca86a4c7fb14ee6f371e6e",
            "sha256:8cb002fbd884f7705a0b83eb49f9a5fb9cc03214e3af2d859da5a883ceb27ba8",
            "sha256:cdfe4489a18955e1b574a704fa0276b3fbc23bc9fed0304d5ea8f8b7dc4584a0"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-04-03T16:23:04.531141694+08:00"
    }
}

更多版本

docker.io/pgvector/pgvector:0.7.0-pg15

linux/amd64 docker.io428.70MB2024-06-20 07:28
594

docker.io/pgvector/pgvector:pg16

linux/arm64 docker.io456.56MB2024-06-27 11:57
667

docker.io/pgvector/pgvector:pg16

linux/amd64 docker.io434.97MB2024-07-09 09:57
928

docker.io/pgvector/pgvector:0.7.0-pg15

linux/arm64 docker.io450.36MB2024-08-21 15:52
235

docker.io/pgvector/pgvector:pg17

linux/amd64 docker.io439.74MB2025-02-09 01:10
216

docker.io/pgvector/pgvector:pg12

linux/amd64 docker.io421.30MB2025-04-03 16:23
16