docker.io/postgres:12.3-alpine linux/amd64

docker.io/postgres:12.3-alpine - 国内下载镜像源 浏览次数:10 安全受验证的发布者-Postgres
PostgreSQL 是一个开源的关系数据库管理系统(RDBMS),提供了传输控制协议(TCP)上的 PostgreSQL 服务。该镜像支持多种操作系统和存储引擎,方便开发、测试和部署应用程序。
源镜像 docker.io/postgres:12.3-alpine
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:12.3-alpine
镜像ID sha256:17150f4321a3d6cf305f9db0d8a2a6cd68f4cc0571d0e482aa35e6da3326fdc7
镜像TAG 12.3-alpine
大小 157.31MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD postgres
启动入口 docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 10 次
贡献者
镜像创建 2020-06-26T20:50:34.888787711Z
同步时间 2025-06-12 09:18
更新时间 2025-06-13 13:59
开放端口
5432/tcp
目录挂载
/var/lib/postgresql/data
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=en_US.utf8 PG_MAJOR=12 PG_VERSION=12.3 PG_SHA256=94ed64a6179048190695c86ec707cc25d016056ce10fc9d229267d9a8f1dcf41 PGDATA=/var/lib/postgresql/data

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:12.3-alpine
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:12.3-alpine  docker.io/postgres:12.3-alpine

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:12.3-alpine
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:12.3-alpine  docker.io/postgres:12.3-alpine

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2020-06-27 04:50:34  0.00B 
/bin/sh -c #(nop)  CMD ["postgres"]
                        
# 2020-06-27 04:50:34  0.00B 
/bin/sh -c #(nop)  EXPOSE 5432
                        
# 2020-06-27 04:50:34  0.00B 
/bin/sh -c #(nop)  ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2020-06-27 04:50:33  10.93KB 
/bin/sh -c #(nop) COPY file:33e6fc6ab9ea2b87183e496ad72f1df7f682913ffd781b1451fd178b0c7d745a in /usr/local/bin/ 
                        
# 2020-06-27 04:50:33  0.00B 
/bin/sh -c #(nop)  VOLUME [/var/lib/postgresql/data]
                        
# 2020-06-27 04:50:33  0.00B 
/bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
                        
# 2020-06-27 04:50:31  0.00B 
/bin/sh -c #(nop)  ENV PGDATA=/var/lib/postgresql/data
                        
# 2020-06-27 04:50:31  0.00B 
/bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
                        
# 2020-06-27 04:50:29  26.53KB 
/bin/sh -c sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample
                        
# 2020-06-27 04:50:27  151.69MB 
/bin/sh -c set -ex 		&& 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 		bison 		coreutils 		dpkg-dev dpkg 		flex 		gcc 		libc-dev 		libedit-dev 		libxml2-dev 		libxslt-dev 		linux-headers 		llvm10-dev clang g++ 		make 		openssl-dev 		perl-utils 		perl-ipc-run 		util-linux-dev 		zlib-dev 		icu-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' 	&& ./configure 		--build="$gnuArch" 		--enable-integer-datetimes 		--enable-thread-safety 		--enable-tap-tests 		--disable-rpath 		--with-uuid=e2fs 		--with-gnu-ld 		--with-pgport=5432 		--with-system-tzdata=/usr/share/zoneinfo 		--prefix=/usr/local 		--with-includes=/usr/local/include 		--with-libraries=/usr/local/lib 				--with-openssl 		--with-libxml 		--with-libxslt 		--with-icu 		--with-llvm 	&& make -j "$(nproc)" world 	&& make install-world 	&& 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 }' 	)" 	&& apk add --no-cache --virtual .postgresql-rundeps 		$runDeps 		bash 		su-exec 		tzdata 	&& apk del --no-network .build-deps 	&& cd / 	&& rm -rf 		/usr/src/postgresql 		/usr/local/share/doc 		/usr/local/share/man 	&& find /usr/local -name '*.a' -delete
                        
# 2020-06-12 06:56:02  0.00B 
/bin/sh -c #(nop)  ENV PG_SHA256=94ed64a6179048190695c86ec707cc25d016056ce10fc9d229267d9a8f1dcf41
                        
# 2020-06-12 06:56:01  0.00B 
/bin/sh -c #(nop)  ENV PG_VERSION=12.3
                        
# 2020-06-12 06:56:01  0.00B 
/bin/sh -c #(nop)  ENV PG_MAJOR=12
                        
# 2020-06-12 06:46:49  0.00B 
/bin/sh -c mkdir /docker-entrypoint-initdb.d
                        
# 2020-06-12 06:46:48  0.00B 
/bin/sh -c #(nop)  ENV LANG=en_US.utf8
                        
# 2020-06-12 06:46:48  4.68KB 
/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; 	mkdir -p /var/lib/postgresql; 	chown -R postgres:postgres /var/lib/postgresql
                        
# 2020-05-30 05:19:46  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/sh"]
                        
# 2020-05-30 05:19:46  5.57MB 
/bin/sh -c #(nop) ADD file:c92c248239f8c7b9b3c067650954815f391b7bcb09023f984972c082ace2a8d0 in / 
                        
                    

镜像信息

{
    "Id": "sha256:17150f4321a3d6cf305f9db0d8a2a6cd68f4cc0571d0e482aa35e6da3326fdc7",
    "RepoTags": [
        "postgres:12.3-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:12.3-alpine"
    ],
    "RepoDigests": [
        "postgres@sha256:7693f2082c681571d1dfa66d63f21689192c0c36108f4eb28be0aee0dc285921",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres@sha256:100dd360878282bcfd7f75db79425852ffbb21e5e3cc0284d07fb6e8d0f1217e"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2020-06-26T20:50:34.888787711Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "18.09.7",
    "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",
            "LANG=en_US.utf8",
            "PG_MAJOR=12",
            "PG_VERSION=12.3",
            "PG_SHA256=94ed64a6179048190695c86ec707cc25d016056ce10fc9d229267d9a8f1dcf41",
            "PGDATA=/var/lib/postgresql/data"
        ],
        "Cmd": [
            "postgres"
        ],
        "ArgsEscaped": true,
        "Image": "sha256:0739a47c08fc91c770e421cbf9cd29168ab501023dd34da3f8039298516c4a5d",
        "Volumes": {
            "/var/lib/postgresql/data": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 157310081,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/079bbed510ef3ed716ce34bd94025ab473f025216bb969f7d5da283c3e02143c/diff:/var/lib/docker/overlay2/2787a60a4f09f1a7bbd17ee740190dad073ee2d8b7ff878cf67064c7b3bc63b2/diff:/var/lib/docker/overlay2/6de4a75388e36d405ebca6487889797e42cda63a829257060a6a8c26b56ad954/diff:/var/lib/docker/overlay2/bb1bbd881f8d6a8fc0f4ba9c3cf57f45f422c03f310c41e0e364cb7f6fd17f4f/diff:/var/lib/docker/overlay2/8dc20f61b044e5e1a62e00face94ca7d0710a296a2232444e563683a6c2e5e1a/diff:/var/lib/docker/overlay2/e53ead966261b541cb385f1d8b775d78d6315d631dcc3a9ecb672b955ebe0643/diff:/var/lib/docker/overlay2/25837f27c0e32f732139d6d1fe2bf04d4d30518b00b80bed8fd1e00fd4b79564/diff",
            "MergedDir": "/var/lib/docker/overlay2/db353164d01296c7474bd4f4f43b9a124743a72508da1e41a8cf27d6ce84eae9/merged",
            "UpperDir": "/var/lib/docker/overlay2/db353164d01296c7474bd4f4f43b9a124743a72508da1e41a8cf27d6ce84eae9/diff",
            "WorkDir": "/var/lib/docker/overlay2/db353164d01296c7474bd4f4f43b9a124743a72508da1e41a8cf27d6ce84eae9/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:50644c29ef5a27c9a40c393a73ece2479de78325cae7d762ef3cdc19bf42dd0a",
            "sha256:62c05715278965a1dac27dd8dd226ba4641bb0bad580267ce7a1a271500a71a4",
            "sha256:731b196c42dfde255044afae47b1406201d9e45d91999d25b88e1dd8cd48db9f",
            "sha256:1bc6d03de502ba80e4b15dc6b407328935e531271afae2c5def3731bf0782a62",
            "sha256:9673ac68331f66fdd37bfb227792aa0c8dc3219d53a30e61a3c9e3083f4f1eae",
            "sha256:082f90772f707e09ffda07e0d5ca03385f1158ddac16111e4a012768e40a2a16",
            "sha256:66610798906f6998927feaa7a35f86c3a1416f4129184c1131b3e6f354785e87",
            "sha256:d83915a9059be2bb57c0d05fc7e68c8e89e15aebfb27d5658e096344671065f0"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-06-12T09:18:22.304153845+08:00"
    }
}

更多版本

docker.io/postgres:12.19-bullseye

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

docker.io/postgres:15-alpine

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

docker.io/postgres:12.19-alpine3.20

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

docker.io/postgres:16.3-alpine3.20

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

docker.io/postgres:14-alpine

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

docker.io/postgres:15-alpine

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

docker.io/postgres:15.4

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

docker.io/postgres:9.6.21-alpine

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

docker.io/postgres:13.8

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

docker.io/postgres:16

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

docker.io/postgres:9.6.24

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

docker.io/postgres:15.3

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

docker.io/postgres:16.3

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

docker.io/postgres:16.3-bookworm

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

docker.io/postgres:14.2-alpine

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

docker.io/postgres:16.4

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

docker.io/postgres:12.2

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

docker.io/postgres:17

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

docker.io/postgres:17-alpine

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

docker.io/postgres:14.12

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

docker.io/postgres:13.14

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

docker.io/postgres:10-alpine

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

docker.io/postgres:alpine

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

docker.io/postgres:14.7-alpine3.17

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

docker.io/postgres:14.11

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

docker.io/postgres:12.3

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

docker.io/postgres:12

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

docker.io/postgres:9.5

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

docker.io/postgres:11

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

docker.io/postgres:16-alpine

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

docker.io/postgres:9.6.16

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

docker.io/postgres:12.4

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

docker.io/postgres:17.2

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

docker.io/postgrest/postgrest:v12.0.1

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

docker.io/postgres:16.6-alpine3.21

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

docker.io/postgres:15.6

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

docker.io/postgres:13-alpine

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

docker.io/postgres:17.2-alpine3.21

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

docker.io/postgres:11.4

linux/amd64 docker.io312.47MB2025-01-20 14:59
126

docker.io/postgres:14

linux/arm64 docker.io444.02MB2025-01-27 12:55
177

docker.io/postgres:17

linux/arm64 docker.io456.53MB2025-01-27 18:45
321

docker.io/postgres:14.15

linux/amd64 docker.io422.30MB2025-02-04 11:33
171

docker.io/postgres:16.6-bookworm

linux/amd64 docker.io432.28MB2025-02-13 17:57
124

docker.io/postgres:17.2-bookworm

linux/amd64 docker.io434.73MB2025-02-13 18:00
170

docker.io/postgres:17.3-alpine

linux/amd64 docker.io284.35MB2025-02-14 10:44
215

docker.io/postgres:16.4-bullseye

linux/amd64 docker.io400.01MB2025-02-14 11:10
152

docker.io/postgres:15-bullseye

linux/amd64 docker.io418.13MB2025-02-26 16:42
189

docker.io/postgres:15.3

linux/amd64 docker.io411.84MB2025-03-03 11:27
89

docker.io/postgres:15.3-alpine

linux/amd64 docker.io236.75MB2025-03-03 11:32
121

docker.io/postgres:14.17-bookworm

linux/amd64 docker.io426.07MB2025-03-04 10:33
173

docker.io/postgres:13.17

linux/amd64 docker.io419.45MB2025-03-10 16:32
147

docker.io/postgres:13.20

linux/amd64 docker.io423.33MB2025-03-11 17:26
125

docker.io/postgres:15.6

linux/arm64 docker.io447.23MB2025-03-13 15:13
172

docker.io/postgres:16.3-bullseye

linux/amd64 docker.io399.85MB2025-03-13 15:49
105

docker.io/postgres:15.12

linux/amd64 docker.io429.51MB2025-03-17 11:09
107

docker.io/postgres:15.2-alpine

linux/amd64 docker.io243.09MB2025-03-19 10:17
168

docker.io/postgres:15.6-bookworm

linux/arm64 docker.io447.23MB2025-03-19 14:48
125

docker.io/postgres:15.6-bookworm

linux/amd64 docker.io425.45MB2025-03-20 15:17
85

docker.io/postgres:11.22-alpine

linux/amd64 docker.io231.90MB2025-03-20 17:24
156

docker.io/postgres:17.4

linux/amd64 docker.io438.36MB2025-03-26 11:02
309

docker.io/postgres:latest

linux/amd64 docker.io438.36MB2025-03-26 14:07
331

docker.io/postgres:13

linux/amd64 docker.io423.34MB2025-03-29 23:54
122

docker.io/postgrest/postgrest:v12.2.8

linux/amd64 docker.io17.34MB2025-04-04 13:14
281

docker.io/postgres:14.5

linux/arm64 docker.io357.18MB2025-04-08 20:02
92

docker.io/postgrest/postgrest:latest

linux/amd64 docker.io17.36MB2025-04-17 08:28
93

docker.io/postgres:16.8

linux/amd64 docker.io435.96MB2025-04-18 13:40
111

docker.io/postgres:12.11

linux/amd64 docker.io372.64MB2025-04-18 17:35
74

docker.io/postgres:16.1

linux/amd64 docker.io425.16MB2025-04-19 14:27
99

docker.io/postgres:11.9

linux/amd64 docker.io282.36MB2025-04-24 17:11
79

docker.io/postgres:14.1-bullseye

linux/amd64 docker.io374.04MB2025-04-25 12:40
76

docker.io/postgres:15.2-alpine

linux/arm64 docker.io241.47MB2025-04-27 09:20
60

docker.io/postgrest/postgrest:v12.2.11

linux/amd64 docker.io17.35MB2025-04-28 13:15
79

docker.io/postgres:10.23-alpine3.16

linux/amd64 docker.io79.09MB2025-05-09 03:15
83

docker.io/postgres:17.5-alpine

linux/amd64 docker.io278.20MB2025-05-12 12:29
116

docker.io/postgres:12.22-alpine3.21

linux/amd64 docker.io266.44MB2025-05-22 12:59
45

docker.io/postgres:15.13

linux/amd64 docker.io429.57MB2025-05-22 16:09
47

docker.io/postgres:17-alpine

linux/arm64 docker.io269.70MB2025-05-26 10:26
49

docker.io/postgres:16

linux/arm64 docker.io456.79MB2025-05-27 15:50
34

docker.io/postgrest/postgrest:v12.2.12

linux/amd64 docker.io17.38MB2025-05-27 22:02
48

docker.io/postgres:12.3-alpine

linux/amd64 docker.io157.31MB2025-06-12 09:18
9

docker.io/postgres:17.5-bookworm

linux/amd64 docker.io438.42MB2025-06-13 11:09
10