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

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

系统OS: alpine 3.21.0 扫描引擎: Trivy 扫描时间: 2025-01-03 14:51

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

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 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  56.01KB 执行命令并创建新的镜像层
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  257.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 	; 		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-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 	; 	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=ceea92abee2a8c19408d278b68de6a78b6bd3dbb4fa2d653fa7ca745d666aab1
                        
# 2024-12-06 08:14:30  0.00B 设置环境变量 PG_VERSION
ENV PG_VERSION=13.18
                        
# 2024-12-06 08:14:30  0.00B 设置环境变量 PG_MAJOR
ENV PG_MAJOR=13
                        
# 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:0c4f8dc6f650369aebae8d5bb6eabea281c5c35016ad3e6e1b910a7d376a7554",
    "RepoTags": [
        "postgres:13-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:13-alpine"
    ],
    "RepoDigests": [
        "postgres@sha256:2bb5c13e28b61187ae1d7ef83558865cc06dc4c6ab1ceed0c13447c7c1f90ede",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres@sha256:b39675a0dc96b904c28b2120b14ce81b3b014c75f7338cdaf51e717bc4c013f8"
    ],
    "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=13",
            "PG_VERSION=13.18",
            "PG_SHA256=ceea92abee2a8c19408d278b68de6a78b6bd3dbb4fa2d653fa7ca745d666aab1",
            "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": 267846587,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/226f4ee80759709ee8297cf6cab15cfb08062ff856bba8f5ed75b03c8c743752/diff:/var/lib/docker/overlay2/6e0a1656d77789eb5d9fa211af3134904ed32105b0ba8203cc6d4bdf5ac8ae5d/diff:/var/lib/docker/overlay2/a4cb6ccbb667f5513478c5fd489808eb98650090d67f5b069f0cdd0499d9f16f/diff:/var/lib/docker/overlay2/f6dfe2a57da5f4a7ae3b27a813507310324dab57b85ac8be656eab9cf699deff/diff:/var/lib/docker/overlay2/1ded2589b5cca397a6c120dadfdcb94c2a6c3d0fc15c095b521c8d76354b1d2c/diff:/var/lib/docker/overlay2/b9ef3210af2516eab8be95a3d90015cab0483292a84b365af8be3732fe19c6bf/diff:/var/lib/docker/overlay2/f614f82d2032b09fe47d6be232c0b781e2e9ce2ffc0b092accbb538364bec00d/diff:/var/lib/docker/overlay2/951da661cebb0d7b7aa62fe4de977f35cf62e6015e06251ad174b0ade14a645d/diff:/var/lib/docker/overlay2/7dbed661821ffc074190d0f7e554153ba61c21e69af16d07f6879d1bd9feec9d/diff:/var/lib/docker/overlay2/53b5fa4579ad9922109e31b10a65d1b10dd6501a5a8bc80d4175a9324cdbf2e0/diff",
            "MergedDir": "/var/lib/docker/overlay2/b37b7338db805f5d0858bc5f2908d8fe7445ea4f1cc154fbf0e8236633591811/merged",
            "UpperDir": "/var/lib/docker/overlay2/b37b7338db805f5d0858bc5f2908d8fe7445ea4f1cc154fbf0e8236633591811/diff",
            "WorkDir": "/var/lib/docker/overlay2/b37b7338db805f5d0858bc5f2908d8fe7445ea4f1cc154fbf0e8236633591811/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:3e01818d79cd3467f1d60e54224f3f6ce5170eceb54e265d96bb82344b8c24e7",
            "sha256:aaea5b2fce682e82d6dd19f657b63c1b4465f9eec49af233fd8864a66f626acb",
            "sha256:e6a351e69c0746cf4ca67a7c19ab7be4dc7b27c1ed1285a559040df3aa01bbd0",
            "sha256:66459a35a04bc5b0ad70f8c8046cde93d90d0903058c49d72be1662e5aacf52f",
            "sha256:fda5eb45ac8d6ead786b4e121ddfec621447807973368d9b9d3a23655aa8b377",
            "sha256:156a32f9e383fb99d52122fbe8dd471a6ae20affcf958a20be5ef31f14d0ecc7",
            "sha256:335d0bdfa874bc8207cceb6720ca903ed616a0a6cfee98f1bb233b6d606b1c53",
            "sha256:d6684557ee18b34552d56db53575036004df213a7ef8d185d30aea3d61ae6f15",
            "sha256:01794181d475847085a41cc9f2da70a000ead48432bcbe6b02a944c2472403f4",
            "sha256:e05fcdaea74f66678dcaefee617e6988f903c4e48581c64ed806ad4e80d5c843",
            "sha256:cd688e98ac5f7d8dfa6f690cc42ff4d7fdb83f95088be904180068e55f87a12e"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-01-03T14:51:07.03170115+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
1085

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
521

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
55

docker.io/postgres:15.6

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

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