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

docker.io/postgres:14-alpine - 国内下载镜像源 浏览次数:384 安全受验证的发布者-Postgres
PostgreSQL 是一个开源的关系数据库管理系统(RDBMS),提供了传输控制协议(TCP)上的 PostgreSQL 服务。该镜像支持多种操作系统和存储引擎,方便开发、测试和部署应用程序。
源镜像 docker.io/postgres:14-alpine
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:14-alpine
镜像ID sha256:bae8d2c8d2cc06a16c87fb3decd4d7300c83b01953b58445f06e0d428ff26ff1
镜像TAG 14-alpine
大小 241.40MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD postgres
启动入口 docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 384 次
贡献者
镜像创建 2024-06-03T20:57:56Z
同步时间 2024-07-03 23:43
更新时间 2025-01-17 16:31
开放端口
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=14 PG_VERSION=14.12 PG_SHA256=6118d08f9ddcc1bd83cf2b7cc74d3b583bdcec2f37e6245a8ac003b8faa80923 DOCKER_PG_LLVM_DEPS=llvm15-dev clang15 PGDATA=/var/lib/postgresql/data

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-06-04 04:57:56  0.00B 设置默认要执行的命令
CMD ["postgres"]
                        
# 2024-06-04 04:57:56  0.00B 声明容器运行时监听的端口
EXPOSE map[5432/tcp:{}]
                        
# 2024-06-04 04:57:56  0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGINT
                        
# 2024-06-04 04:57:56  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2024-06-04 04:57:56  23.00B 执行命令并创建新的镜像层
RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
                        
# 2024-06-04 04:57:56  14.96KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
                        
# 2024-06-04 04:57:56  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/var/lib/postgresql/data]
                        
# 2024-06-04 04:57:56  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
                        
# 2024-06-04 04:57:56  0.00B 设置环境变量 PGDATA
ENV PGDATA=/var/lib/postgresql/data
                        
# 2024-06-04 04:57:56  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-06-04 04:57:56  57.37KB 执行命令并创建新的镜像层
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-06-04 04:57:56  230.92MB 执行命令并创建新的镜像层
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 	; 		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/llvm15/bin/llvm-config"; 	export CLANG=clang-15; 		./configure 		--enable-option-checking=fatal 		--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-gssapi 		--with-ldap 		--with-tcl 		--with-perl 		--with-python 		--with-openssl 		--with-libxml 		--with-libxslt 		--with-icu 		--with-llvm 		--with-lz4 	; 	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-06-04 04:57:56  0.00B 设置环境变量 DOCKER_PG_LLVM_DEPS
ENV DOCKER_PG_LLVM_DEPS=llvm15-dev 		clang15
                        
# 2024-06-04 04:57:56  0.00B 设置环境变量 PG_SHA256
ENV PG_SHA256=6118d08f9ddcc1bd83cf2b7cc74d3b583bdcec2f37e6245a8ac003b8faa80923
                        
# 2024-06-04 04:57:56  0.00B 设置环境变量 PG_VERSION
ENV PG_VERSION=14.12
                        
# 2024-06-04 04:57:56  0.00B 设置环境变量 PG_MAJOR
ENV PG_MAJOR=14
                        
# 2024-06-04 04:57:56  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
                        
# 2024-06-04 04:57:56  0.00B 设置环境变量 LANG
ENV LANG=en_US.utf8
                        
# 2024-06-04 04:57:56  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-06-04 04:57:56  2.60MB 执行命令并创建新的镜像层
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-06-04 04:57:56  0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.17
                        
# 2024-06-04 04:57:56  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; 	mkdir -p /var/lib/postgresql; 	chown -R postgres:postgres /var/lib/postgresql # buildkit
                        
# 2024-06-04 04:57:56  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/sh"]
                        
# 2024-06-04 04:57:56  7.80MB 
/bin/sh -c #(nop) ADD file:33ebe56b967747a97dcec01bc2559962bee8823686c9739d26be060381bbb3ca in / 
                        
                    

镜像信息

{
    "Id": "sha256:bae8d2c8d2cc06a16c87fb3decd4d7300c83b01953b58445f06e0d428ff26ff1",
    "RepoTags": [
        "postgres:14-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:14-alpine"
    ],
    "RepoDigests": [
        "postgres@sha256:55633b9ab4c34e2844648f9ab877b46a87c36fc3d32f06a0c7d1703360d4fa81",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres@sha256:7bafc946763fd203b54a711a0f57f4935cbd39446633ea0b6e67429ff3289937"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-06-03T20:57:56Z",
    "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=14",
            "PG_VERSION=14.12",
            "PG_SHA256=6118d08f9ddcc1bd83cf2b7cc74d3b583bdcec2f37e6245a8ac003b8faa80923",
            "DOCKER_PG_LLVM_DEPS=llvm15-dev \t\tclang15",
            "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": 241395636,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/20bb8f317f9cf31c47b7b5bf6bb8ff8f222d4c107a4525d25c5ca1bc29559fc5/diff:/var/lib/docker/overlay2/c8a99b1f34f9b588c6c89c0c01d8b153ce9fc53d6bb51e691b6f8620ce11c60c/diff:/var/lib/docker/overlay2/6a7b8bf5427ad81046873c8ced4cff3d4be28e32c1cb3a148c873a51830b05be/diff:/var/lib/docker/overlay2/5dfc922f49b597daa8aca2973192da400f2d9220e4bd9e6cb869f772daff3cfb/diff:/var/lib/docker/overlay2/5de8f1912522c43151d8530e5df23c5e1e8800f5d4e4bfaef0123fdb59035394/diff:/var/lib/docker/overlay2/dfba2032a24653188cc2ed303a39f1b4b774ce0cf1fdcc87fa4428896b90d7b6/diff:/var/lib/docker/overlay2/9fbdefe15ebb1f098e030916c0f4ed923263eb02768594f52c155cf75b7f67bd/diff:/var/lib/docker/overlay2/5e0f0992cfd4e55366b77ff036cc49118f641290dc1c8737866c2494a9b3b5c7/diff:/var/lib/docker/overlay2/e16ae9ddca9b8e249d15d10b520fe46e2b3c6fd9135fa0c1e17107e38417d0d3/diff:/var/lib/docker/overlay2/984bb007f5969551b53fa1fce3296c2df39ab51a6831eab684250ac7efdbac0c/diff",
            "MergedDir": "/var/lib/docker/overlay2/e4a837f5a56db588bcab31363a70dd6dc29c9e18377595eac9a365c89dca2ca8/merged",
            "UpperDir": "/var/lib/docker/overlay2/e4a837f5a56db588bcab31363a70dd6dc29c9e18377595eac9a365c89dca2ca8/diff",
            "WorkDir": "/var/lib/docker/overlay2/e4a837f5a56db588bcab31363a70dd6dc29c9e18377595eac9a365c89dca2ca8/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:94e5f06ff8e3d4441dc3cd8b090ff38dc911bfa8ebdb0dc28395bc98f82f983f",
            "sha256:af27af89a977c5f433205e117de8235aea77bad83c9298b9534cdf98bdad7a1e",
            "sha256:1b54d19c39e099e7e52c67d6e331b9a6a8bb2f9bd3e83d25374ce93bc7af5a64",
            "sha256:eeef625930d091a81c4bb718fd34fd5930063716f1c1985588af2ac8d621a83b",
            "sha256:4f00bc4ec96301c75624170025188654fe73b57e0f1aa1785beee9df7500093f",
            "sha256:6bb827d9b87e32cf9426f5c823033f9768e44ae5f7278da55acd7829a4c8f203",
            "sha256:498d6d0c1f10dcb42183738600ac4308fa5aaa35a7391d44e59abc461049a3ed",
            "sha256:a6cbddbb26c0ed18e9bf56eb88e6ddc18e830a1f333f91232e4473dfc74e6a58",
            "sha256:03403297eb65455cf7b76e2ec916d8629beb1c3283e32880369091c7d9efb69d",
            "sha256:1aa2e74d5fa2aed7a4056c77949c6dcafb8a5bbc0105419230913cabb3e97e27",
            "sha256:fc337bdf647b773e6b6ff7e62b6b5e4a5cdf9ccb4005a91b2eca408a35e01e26"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-07-03T23:42:45.859101478+08:00"
    }
}

更多版本

docker.io/postgres:12.19-bullseye

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

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
383

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
191

docker.io/postgres:14.2-alpine

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

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
271

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
233

docker.io/postgres:alpine

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

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
73

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
68

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
39