docker.io/postgres:11 linux/amd64

docker.io/postgres:11 - 国内下载镜像源 浏览次数:69 安全受验证的发布者-Postgres
PostgreSQL 是一个开源的关系数据库管理系统(RDBMS),提供了传输控制协议(TCP)上的 PostgreSQL 服务。该镜像支持多种操作系统和存储引擎,方便开发、测试和部署应用程序。
源镜像 docker.io/postgres:11
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:11
镜像ID sha256:60a93af0bba5e777f0d739666913a1c26308340b6e2344ebb64089881e348633
镜像TAG 11
大小 284.46MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD postgres
启动入口 docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 69 次
贡献者 36******0@qq.com
镜像创建 2022-06-23T14:29:59.278822134Z
同步时间 2024-11-27 14:14
更新时间 2025-01-17 18:35
开放端口
5432/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/11/bin GOSU_VERSION=1.14 LANG=en_US.utf8 PG_MAJOR=11 PG_VERSION=11.16-1.pgdg90+1 PGDATA=/var/lib/postgresql/data
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 9.13 扫描引擎: Trivy 扫描时间: 2024-11-27 14:14

低危漏洞:50 中危漏洞:39 高危漏洞:75 严重漏洞:7

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2022-06-23 22:29:59  0.00B 
/bin/sh -c #(nop)  CMD ["postgres"]
                        
# 2022-06-23 22:29:59  0.00B 
/bin/sh -c #(nop)  EXPOSE 5432
                        
# 2022-06-23 22:29:59  0.00B 
/bin/sh -c #(nop)  STOPSIGNAL SIGINT
                        
# 2022-06-23 22:29:58  0.00B 
/bin/sh -c #(nop)  ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2022-06-23 22:29:58  12.13KB 
/bin/sh -c #(nop) COPY file:925d466681c8349f58385c00a8caa567c76b695158aa04bf4ad2ac92604e11c7 in /usr/local/bin/ 
                        
# 2022-06-23 22:29:58  0.00B 
/bin/sh -c #(nop)  VOLUME [/var/lib/postgresql/data]
                        
# 2022-06-23 22:29:58  0.00B 
/bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
                        
# 2022-06-23 22:29:58  0.00B 
/bin/sh -c #(nop)  ENV PGDATA=/var/lib/postgresql/data
                        
# 2022-06-23 22:29:57  0.00B 
/bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
                        
# 2022-06-23 22:29:57  48.55KB 
/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
                        
# 2022-06-23 22:29:56  194.72MB 
/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/ stretch-pgdg main $PG_MAJOR"; 	case "$dpkgArch" in 		amd64 | i386 | ppc64el) 			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)"; 						echo 'deb http://deb.debian.org/debian stretch-backports main' >> /etc/apt/sources.list.d/pgdg.list; 			apt-get update; 			apt-get install -y --no-install-recommends clang-6.0; 						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
                        
# 2022-06-23 22:29:35  0.00B 
/bin/sh -c #(nop)  ENV PG_VERSION=11.16-1.pgdg90+1
                        
# 2022-06-23 22:29:35  0.00B 
/bin/sh -c #(nop)  ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/11/bin
                        
# 2022-06-23 22:29:35  0.00B 
/bin/sh -c #(nop)  ENV PG_MAJOR=11
                        
# 2022-06-23 22:29:34  7.12KB 
/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; 	command -v gpgconf > /dev/null && gpgconf --kill all; 	rm -rf "$GNUPGHOME"
                        
# 2022-06-23 22:29:31  0.00B 
/bin/sh -c mkdir /docker-entrypoint-initdb.d
                        
# 2022-06-23 22:29:31  3.14MB 
/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/*
                        
# 2022-06-23 22:29:27  0.00B 
/bin/sh -c #(nop)  ENV LANG=en_US.utf8
                        
# 2022-06-23 22:29:27  16.53MB 
/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/*; 	localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
                        
# 2022-06-23 22:29:22  4.03MB 
/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
                        
# 2022-06-23 22:29:10  0.00B 
/bin/sh -c #(nop)  ENV GOSU_VERSION=1.14
                        
# 2022-06-23 22:29:10  328.58KB 
/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
                        
# 2022-06-23 22:29:10  10.24MB 
/bin/sh -c set -ex; 	if ! command -v gpg > /dev/null; then 		apt-get update; 		apt-get install -y --no-install-recommends 			gnupg 			dirmngr 		; 		rm -rf /var/lib/apt/lists/*; 	fi
                        
# 2022-06-23 08:22:20  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2022-06-23 08:22:20  55.38MB 
/bin/sh -c #(nop) ADD file:cfad5912b6dd7590713979e5a5e231b1b6873200fde725cb7baf75110d7fa138 in / 
                        
                    

镜像信息

{
    "Id": "sha256:60a93af0bba5e777f0d739666913a1c26308340b6e2344ebb64089881e348633",
    "RepoTags": [
        "postgres:11",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:11"
    ],
    "RepoDigests": [
        "postgres@sha256:5d2aa4a7b5f9bdadeddcf87cf7f90a176737a02a30d917de4ab2e6a329bd2d45",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres@sha256:fdfb434d69d7884d6366840279dc3e721d1bd67cc1d02d51aeea7497f323fc5e"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2022-06-23T14:29:59.278822134Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "20.10.12",
    "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/11/bin",
            "GOSU_VERSION=1.14",
            "LANG=en_US.utf8",
            "PG_MAJOR=11",
            "PG_VERSION=11.16-1.pgdg90+1",
            "PGDATA=/var/lib/postgresql/data"
        ],
        "Cmd": [
            "postgres"
        ],
        "Image": "sha256:15ddedb2d8e06118c93c2bc99d1af3c203f0c3545b169d8df1ee90b88e8eb323",
        "Volumes": {
            "/var/lib/postgresql/data": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null,
        "StopSignal": "SIGINT"
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 284455117,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/cda96d1062a3643f0811a89b31789819d2a0f12d3d39a0be23cacf3a4a94fab9/diff:/var/lib/docker/overlay2/dc2c7959766bc4044a3e1853c093a55b404f57977e823c528cabdc42baacea13/diff:/var/lib/docker/overlay2/adfb8a12136cb8985033b47b7482d827ec6b7bcb46113b4f64fe79176c49e4b6/diff:/var/lib/docker/overlay2/b18a4e369458c2172a33b75458b187c40f9176fe70c6cb239bc7bf04039b7f8e/diff:/var/lib/docker/overlay2/6e5e72f94253074839519a8abde9e06df5c27f523bf010ba7c7367ef64ec1032/diff:/var/lib/docker/overlay2/a5d286bcbc355d0435492f1dd7eeebc019c802071bc31874f7a011fcf67a1915/diff:/var/lib/docker/overlay2/96e964440250ff6bfd84edc2678b257f56e3015908fa9c65b55db54caae63dbb/diff:/var/lib/docker/overlay2/c5d63844bf8d26658803badab48eaa26acd2825407f656fcd916c9322ee0ecf2/diff:/var/lib/docker/overlay2/313ade2527c9fe809da424d1d3f011a87ed0612c43e57ddb3b1d6f02d35fea5f/diff:/var/lib/docker/overlay2/80738cfa5473fb55076b4c34728b5858cdbfd72e5dc2f6449149cc2f0a25b1a2/diff:/var/lib/docker/overlay2/b72d00de025f5fdfee5f054aae44e6b774d1d9afb74afb616875987bd0db7181/diff:/var/lib/docker/overlay2/1296c3706a5dff0490cda873bcd55e6e0374ef68957f4c56bf60c25efdc584e3/diff",
            "MergedDir": "/var/lib/docker/overlay2/847b1ea869542b6512b1dd145c26f56db4d492a48ef430daa84f356729cb5f2a/merged",
            "UpperDir": "/var/lib/docker/overlay2/847b1ea869542b6512b1dd145c26f56db4d492a48ef430daa84f356729cb5f2a/diff",
            "WorkDir": "/var/lib/docker/overlay2/847b1ea869542b6512b1dd145c26f56db4d492a48ef430daa84f356729cb5f2a/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:992f38e1a81cbdf2903fab2603f6076f3bef54262b4b2aa5b196515bac953688",
            "sha256:70dcf9a095abff19a80c4eff9420b4a344ccbb4bde422baa9e36e2d2a841fff5",
            "sha256:3c8356d23bf4a3ba5a54716321a934080df21c238a8915e30100d35e3029d5ad",
            "sha256:733f067f85a791fe956f6fab6816a814c27fcd70f7b16fed2691bf66c2cfa98f",
            "sha256:0a384dd1ad4a7805627049b2b936bec01f91f34d8b7ca71c6f0c26497b77f2ee",
            "sha256:aed0e4d571b4c5fbc2f9247735cb3f9ecb3fa3f9c9ac67acd9541d996b1db112",
            "sha256:9649d591bc9eef00eeb23a763ae0a58d1ebb3b60a6d9aafbe44d5cac08cdca8b",
            "sha256:8bd9c466cd1ff1284d2f6600e82fdd4e9db287c0242b3911a279983089506cf0",
            "sha256:f89029385a6b7bfb132da713e422583916038f041119580e2309f4d7657b09b5",
            "sha256:f8a76936c05155cd4b92e35956e013db4602ea4d090b7176b1f39927f59f4bc9",
            "sha256:0e3dd93f30d920dada431892ba8a645c88286581979f252bcf4828b61bb1f5ae",
            "sha256:8127b99412129c24bc9c53bcd56f3169fce9cd627c510412692e6c4706cfe20e",
            "sha256:ac22679658630fef2253531104adcdec3aaf4128cae9452face2d6db91a47ce3"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-11-27T14:14:12.031141041+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
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
40