docker.io/postgres:16.6-alpine3.21 linux/amd64

docker.io/postgres:16.6-alpine3.21 - 国内下载镜像源 浏览次数:55 安全受验证的发布者-Postgres
PostgreSQL 是一个开源的关系数据库管理系统(RDBMS),提供了传输控制协议(TCP)上的 PostgreSQL 服务。该镜像支持多种操作系统和存储引擎,方便开发、测试和部署应用程序。
源镜像 docker.io/postgres:16.6-alpine3.21
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:16.6-alpine3.21
镜像ID sha256:83a1b4068e0f983d6084c4a6cdc88e8f426d39c72668ddc096e7f7bbd08fc2b3
镜像TAG 16.6-alpine3.21
大小 274.85MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD postgres
启动入口 docker-entrypoint.sh
工作目录 /
OS/平台 linux/amd64
浏览量 55 次
贡献者
镜像创建 2024-12-06T00:14:30Z
同步时间 2024-12-30 14:08
更新时间 2025-01-18 07:19
开放端口
5432/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GOSU_VERSION=1.17 LANG=en_US.utf8 PG_MAJOR=16 PG_VERSION=16.6 PG_SHA256=23369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b DOCKER_PG_LLVM_DEPS=llvm19-dev clang19 PGDATA=/var/lib/postgresql/data
镜像安全扫描 查看Trivy扫描报告

系统OS: alpine 3.21.0 扫描引擎: Trivy 扫描时间: 2024-12-30 14:09

低危漏洞:1 中危漏洞:20 高危漏洞:31 严重漏洞:3

Docker拉取命令 无权限下载?点我修复

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:16.6-alpine3.21
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:16.6-alpine3.21  docker.io/postgres:16.6-alpine3.21

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:16.6-alpine3.21
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:16.6-alpine3.21  docker.io/postgres:16.6-alpine3.21

Shell快速替换命令

sed -i 's#postgres:16.6-alpine3.21#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:16.6-alpine3.21#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:16.6-alpine3.21 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:16.6-alpine3.21  docker.io/postgres:16.6-alpine3.21'

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-12-06 08:14:30  0.00B 设置默认要执行的命令
CMD ["postgres"]
                        
# 2024-12-06 08:14:30  0.00B 声明容器运行时监听的端口
EXPOSE map[5432/tcp:{}]
                        
# 2024-12-06 08:14:30  0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGINT
                        
# 2024-12-06 08:14:30  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2024-12-06 08:14:30  23.00B 执行命令并创建新的镜像层
RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
                        
# 2024-12-06 08:14:30  14.96KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
                        
# 2024-12-06 08:14:30  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/var/lib/postgresql/data]
                        
# 2024-12-06 08:14:30  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
                        
# 2024-12-06 08:14:30  0.00B 设置环境变量 PGDATA
ENV PGDATA=/var/lib/postgresql/data
                        
# 2024-12-06 08:14:30  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
                        
# 2024-12-06 08:14:30  59.25KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; 	sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; 	grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
                        
# 2024-12-06 08:14:30  264.33MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; 	echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; 	mkdir -p /usr/src/postgresql; 	tar 		--extract 		--file postgresql.tar.bz2 		--directory /usr/src/postgresql 		--strip-components 1 	; 	rm postgresql.tar.bz2; 		apk add --no-cache --virtual .build-deps 		$DOCKER_PG_LLVM_DEPS 		bison 		coreutils 		dpkg-dev dpkg 		flex 		g++ 		gcc 		krb5-dev 		libc-dev 		libedit-dev 		libxml2-dev 		libxslt-dev 		linux-headers 		make 		openldap-dev 		openssl-dev 		perl-dev 		perl-ipc-run 		perl-utils 		python3-dev 		tcl-dev 		util-linux-dev 		zlib-dev 		icu-dev 		lz4-dev 		zstd-dev 	; 		cd /usr/src/postgresql; 	awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; 	grep '/var/run/postgresql' src/include/pg_config_manual.h.new; 	mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; 	gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; 	wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; 	wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; 		export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; 	export CLANG=clang-19; 		./configure 		--enable-option-checking=fatal 		--build="$gnuArch" 		--enable-integer-datetimes 		--enable-thread-safety 		--enable-tap-tests 		--disable-rpath 		--with-uuid=e2fs 		--with-pgport=5432 		--with-system-tzdata=/usr/share/zoneinfo 		--prefix=/usr/local 		--with-includes=/usr/local/include 		--with-libraries=/usr/local/lib 		--with-gssapi 		--with-ldap 		--with-tcl 		--with-perl 		--with-python 		--with-openssl 		--with-libxml 		--with-libxslt 		--with-icu 		--with-llvm 		--with-lz4 		--with-zstd 	; 	make -j "$(nproc)" world-bin; 	make install-world-bin; 	make -C contrib install; 		runDeps="$( 		scanelf --needed --nobanner --format '%n#p' --recursive /usr/local 			| tr ',' '\n' 			| sort -u 			| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' 			| grep -v -e perl -e python -e tcl 	)"; 	apk add --no-cache --virtual .postgresql-rundeps 		$runDeps 		bash 		tzdata 		zstd 		icu-data-full 		$([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') 	; 	apk del --no-network .build-deps; 	cd /; 	rm -rf 		/usr/src/postgresql 		/usr/local/share/doc 		/usr/local/share/man 	; 		postgres --version # buildkit
                        
# 2024-12-06 08:14:30  0.00B 设置环境变量 DOCKER_PG_LLVM_DEPS
ENV DOCKER_PG_LLVM_DEPS=llvm19-dev 		clang19
                        
# 2024-12-06 08:14:30  0.00B 设置环境变量 PG_SHA256
ENV PG_SHA256=23369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b
                        
# 2024-12-06 08:14:30  0.00B 设置环境变量 PG_VERSION
ENV PG_VERSION=16.6
                        
# 2024-12-06 08:14:30  0.00B 设置环境变量 PG_MAJOR
ENV PG_MAJOR=16
                        
# 2024-12-06 08:14:30  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
                        
# 2024-12-06 08:14:30  0.00B 设置环境变量 LANG
ENV LANG=en_US.utf8
                        
# 2024-12-06 08:14:30  4.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
                        
# 2024-12-06 08:14:30  2.61MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		apk add --no-cache --virtual .gosu-deps 		ca-certificates 		dpkg 		gnupg 	; 		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; 		apk del --no-network .gosu-deps; 		chmod +x /usr/local/bin/gosu; 	gosu --version; 	gosu nobody true # buildkit
                        
# 2024-12-06 08:14:30  0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.17
                        
# 2024-12-06 08:14:30  3.07KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	addgroup -g 70 -S postgres; 	adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; 	install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
                        
# 2024-12-05 20:49:04  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2024-12-05 20:49:04  7.84MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.21.0-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:83a1b4068e0f983d6084c4a6cdc88e8f426d39c72668ddc096e7f7bbd08fc2b3",
    "RepoTags": [
        "postgres:16.6-alpine3.21",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:16.6-alpine3.21"
    ],
    "RepoDigests": [
        "postgres@sha256:91e75546b4f229fa92cec21a2bf831ba03a1c101fc197daafff657f153e93a39",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres@sha256:880846e231a79aced7b75dd24d49bba5286544f280abc1f99f1c9fe37645ebd3"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-12-06T00:14:30Z",
    "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",
            "GOSU_VERSION=1.17",
            "LANG=en_US.utf8",
            "PG_MAJOR=16",
            "PG_VERSION=16.6",
            "PG_SHA256=23369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b",
            "DOCKER_PG_LLVM_DEPS=llvm19-dev \t\tclang19",
            "PGDATA=/var/lib/postgresql/data"
        ],
        "Cmd": [
            "postgres"
        ],
        "Image": "",
        "Volumes": {
            "/var/lib/postgresql/data": {}
        },
        "WorkingDir": "/",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null,
        "StopSignal": "SIGINT"
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 274852063,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/f3913f6ebc11a033f91099f44da1555540c88d73e118d40bc929d2fb81e7def4/diff:/var/lib/docker/overlay2/a6d11a7c3d9452280551ba7d24015b2292e38022edc91f334cb1de8dc4b72343/diff:/var/lib/docker/overlay2/299c79673594db117740dbca22cd98ddb9ef59d25b2e327d2b966ce9ce36139e/diff:/var/lib/docker/overlay2/449678fadc8aa9f314a104ad63e5d08fbbe9e94a4e0f65a95fbb31d898eed5d2/diff:/var/lib/docker/overlay2/a040108b4b14abe07ce22a5da3c0eb6425b766243a69051295401540e2e4acc2/diff:/var/lib/docker/overlay2/c782189255b6a8b0ebe31337414a4c8c06840ab4225688a50290e0858a47da29/diff:/var/lib/docker/overlay2/4237a7f4746c0362033e9c00a09aced64fff5f68d5f7bf5df980295346fbf82d/diff:/var/lib/docker/overlay2/ec0e0cfe52a795ae7e906a6a07393cf9c7e532f7c5740ac7e83dbaad68feca87/diff:/var/lib/docker/overlay2/ded40cf7f576cdbf737ab56f157168a4fed709aa807e3a337a67a7daca358f37/diff:/var/lib/docker/overlay2/53b5fa4579ad9922109e31b10a65d1b10dd6501a5a8bc80d4175a9324cdbf2e0/diff",
            "MergedDir": "/var/lib/docker/overlay2/b60a8c1dec6c3c1699648754a5c0ce0daf6aaef17465522cb33bc662e1dff4e4/merged",
            "UpperDir": "/var/lib/docker/overlay2/b60a8c1dec6c3c1699648754a5c0ce0daf6aaef17465522cb33bc662e1dff4e4/diff",
            "WorkDir": "/var/lib/docker/overlay2/b60a8c1dec6c3c1699648754a5c0ce0daf6aaef17465522cb33bc662e1dff4e4/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:3e01818d79cd3467f1d60e54224f3f6ce5170eceb54e265d96bb82344b8c24e7",
            "sha256:39dcca9872e76556319a94ceddf0a57aea9243877645bfff5e063c0c92c22472",
            "sha256:e48ee4a55de65e4c9df383782ba05a25fdf38670fd09ad096f9c6ee465dfa61c",
            "sha256:bcac586cbad7bc1121ed053e4de7f42bd53402bc9d7e5f6ef5ce2b380ad18a34",
            "sha256:c99649405d709fc284fa70cf70369ff76b0f0c732d43763f4e21e93e4d76fe98",
            "sha256:63114e411ac034d77513d0dc681c794d6fa645e67888884e3ad418695b453690",
            "sha256:1ce78327c59641487f024ad8d91c4900748d6f44a6d6df6d8e6141f34c908898",
            "sha256:b979c3704d6350111cc795188888f6203da2d558c00c85c1c8b11bd1f7101067",
            "sha256:c112e2fcc1dae7aa38e01921404745884b9b5a6438e06be203c73faeeb06d2ff",
            "sha256:b28a33ee2137b7bc1d553da2310499020059a00e16345e1dd3e3a5845cc9d7ef",
            "sha256:814cfc0c60315af215ff38e819484138a6032d7d67254f617b46e93c862fa2a6"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-30T14:07:56.703668551+08:00"
    }
}

更多版本

docker.io/postgres:12.19-bullseye

linux/amd64 docker.io386.93MB2024-06-16 13:12
358

docker.io/postgres:15-alpine

linux/amd64 docker.io248.31MB2024-06-19 17:31
1084

docker.io/postgres:12.19-alpine3.20

linux/amd64 docker.io236.26MB2024-06-28 17:32
228

docker.io/postgres:16.3-alpine3.20

linux/amd64 docker.io244.93MB2024-06-28 17:32
494

docker.io/postgres:14-alpine

linux/amd64 docker.io241.40MB2024-07-03 23:43
384

docker.io/postgres:15-alpine

linux/arm64 docker.io250.04MB2024-07-08 15:04
867

docker.io/postgres:15.4

linux/amd64 docker.io410.61MB2024-07-18 12:35
820

docker.io/postgres:9.6.21-alpine

linux/arm64 docker.io35.93MB2024-07-24 11:50
200

docker.io/postgres:13.8

linux/arm64 docker.io354.23MB2024-07-24 23:02
294

docker.io/postgres:16

linux/amd64 docker.io431.58MB2024-07-26 18:25
520

docker.io/postgres:9.6.24

linux/amd64 docker.io199.69MB2024-08-01 16:37
422

docker.io/postgres:15.3

linux/arm64 docker.io433.16MB2024-08-01 16:55
291

docker.io/postgres:16.3

linux/amd64 docker.io431.58MB2024-08-02 14:29
297

docker.io/postgres:16.3-bookworm

linux/amd64 docker.io431.58MB2024-08-08 17:41
192

docker.io/postgres:14.2-alpine

linux/amd64 docker.io210.71MB2024-08-15 15:18
201

docker.io/postgres:16.4

linux/amd64 docker.io431.68MB2024-08-27 17:28
508

docker.io/postgres:12.2

linux/amd64 docker.io313.75MB2024-09-13 17:25
238

docker.io/postgres:17

linux/amd64 docker.io434.31MB2024-10-01 13:14
356

docker.io/postgres:17-alpine

linux/amd64 docker.io248.16MB2024-10-03 21:57
272

docker.io/postgres:14.12

linux/amd64 docker.io421.93MB2024-10-14 14:43
163

docker.io/postgres:13.14

linux/amd64 docker.io419.14MB2024-10-15 10:01
312

docker.io/postgres:10-alpine

linux/amd64 docker.io79.09MB2024-10-15 20:03
234

docker.io/postgres:alpine

linux/amd64 docker.io248.16MB2024-10-24 11:56
319

docker.io/postgres:14.7-alpine3.17

linux/amd64 docker.io241.71MB2024-10-29 17:41
292

docker.io/postgres:14.11

linux/amd64 docker.io421.97MB2024-11-05 19:40
94

docker.io/postgres:12.3

linux/amd64 docker.io313.02MB2024-11-07 08:48
84

docker.io/postgres:12

linux/amd64 docker.io418.59MB2024-11-09 11:00
74

docker.io/postgres:9.5

linux/amd64 docker.io197.21MB2024-11-22 11:45
78

docker.io/postgres:11

linux/amd64 docker.io284.46MB2024-11-27 14:14
69

docker.io/postgres:16-alpine

linux/amd64 docker.io250.73MB2024-12-03 21:04
115

docker.io/postgres:9.6.16

linux/amd64 docker.io249.61MB2024-12-04 12:56
82

docker.io/postgres:12.4

linux/arm64 docker.io299.56MB2024-12-19 18:46
58

docker.io/postgres:17.2

linux/amd64 docker.io434.77MB2024-12-19 19:20
97

docker.io/postgrest/postgrest:v12.0.1

linux/amd64 docker.io17.42MB2024-12-24 10:07
60

docker.io/postgres:16.6-alpine3.21

linux/amd64 docker.io274.85MB2024-12-30 14:08
54

docker.io/postgres:15.6

linux/amd64 docker.io425.45MB2025-01-03 13:48
31

docker.io/postgres:13-alpine

linux/amd64 docker.io267.85MB2025-01-03 14:51
32

docker.io/postgres:17.2-alpine3.21

linux/amd64 docker.io277.63MB2025-01-07 14:18
40