docker.io/postgres:12 linux/amd64

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

系统OS: debian 12.7 扫描引擎: Trivy 扫描时间: 2024-11-09 11:01

低危漏洞:113 中危漏洞:39 高危漏洞:46 严重漏洞:4

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像历史

大小 创建时间 层信息
0.00B 2024-08-09 00:22:52 CMD ["postgres"]
0.00B 2024-08-09 00:22:52 EXPOSE map[5432/tcp:{}]
0.00B 2024-08-09 00:22:52 STOPSIGNAL SIGINT
0.00B 2024-08-09 00:22:52 ENTRYPOINT ["docker-entrypoint.sh"]
23.00B 2024-08-09 00:22:52 RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
14.96KB 2024-08-09 00:22:52 COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
0.00B 2024-08-09 00:22:52 VOLUME [/var/lib/postgresql/data]
0.00B 2024-08-09 00:22:52 RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
0.00B 2024-08-09 00:22:52 ENV PGDATA=/var/lib/postgresql/data
0.00B 2024-08-09 00:22:52 RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
53.99KB 2024-08-09 00:22:52 RUN /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 # buildkit
301.28MB 2024-08-09 00:22:52 RUN /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/ bookworm-pgdg main $PG_MAJOR"; case "$dpkgArch" in amd64 | arm64 | ppc64el | s390x) 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)"; 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 # buildkit
0.00B 2024-08-09 00:22:52 ENV PG_VERSION=12.20-1.pgdg120+1
0.00B 2024-08-09 00:22:52 ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/12/bin
0.00B 2024-08-09 00:22:52 ENV PG_MAJOR=12
3.98KB 2024-08-09 00:22:52 RUN /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; gpgconf --kill all; rm -rf "$GNUPGHOME" # buildkit
0.00B 2024-08-09 00:22:52 RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
3.18MB 2024-08-09 00:22:52 RUN /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/* # buildkit
0.00B 2024-08-09 00:22:52 ENV LANG=en_US.utf8
25.19MB 2024-08-09 00:22:52 RUN /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/*; echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen; locale-gen; locale -a | grep 'en_US.utf8' # buildkit
4.16MB 2024-08-09 00:22:52 RUN /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 # buildkit
0.00B 2024-08-09 00:22:52 ENV GOSU_VERSION=1.17
9.93MB 2024-08-09 00:22:52 RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends gnupg less ; rm -rf /var/lib/apt/lists/* # buildkit
4.32KB 2024-08-09 00:22:52 RUN /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; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
0.00B 2024-08-09 00:22:52 /bin/sh -c #(nop) CMD ["bash"]
74.78MB 2024-08-09 00:22:52 /bin/sh -c #(nop) ADD file:90b9dd8f12120e8b2cd3ece45fcbe8af67e40565e2032a40f64bd921c43e2ce7 in /

镜像信息

{
    "Id": "sha256:180d0ddc8fca1f6e69e12769f458da4fc1bbf13986362aeb23f1313d9038fa98",
    "RepoTags": [
        "postgres:12",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:12"
    ],
    "RepoDigests": [
        "postgres@sha256:37b91ef084818bd36cdae4c7a95a95a0e4b992847fa7d9990e99b271c049dd3d",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres@sha256:389e0d9c01e7d6a6b0ca2db9f684af65e76d7f73315e25a38ecb8c269e5fa757"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-08-08T16:22:52Z",
    "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:/usr/lib/postgresql/12/bin",
            "GOSU_VERSION=1.17",
            "LANG=en_US.utf8",
            "PG_MAJOR=12",
            "PG_VERSION=12.20-1.pgdg120+1",
            "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": 418590262,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/f452557fce3ae2c747aa58dc86b7747362f3227e449e2bb3267ffc7819a88f5b/diff:/var/lib/docker/overlay2/8d2141bfca465a70fdae37c1eb30083fb120941bbf5a846771cd7d720cc05661/diff:/var/lib/docker/overlay2/8d49da7be16a485a37d6ed1434cb3d522d7a7acd91a2bad357f932e49d1fdbdc/diff:/var/lib/docker/overlay2/b2c7406d3d029b46d3573b35c2667817407f75608b2aeaacae7b86f50e384e83/diff:/var/lib/docker/overlay2/fd5d181a96736b4e25cf670d01c08dd2e5d5533e5f2de7c1b7cecfdb38518223/diff:/var/lib/docker/overlay2/91da101b8fea5e1f5218df8fa59fbd3ec6b99beb41c1115ee4f12b1bae35f61a/diff:/var/lib/docker/overlay2/dc851d5778bd9320e4db96bc183b1c61f028e3e9cdca601aa64a1f8897e0f7da/diff:/var/lib/docker/overlay2/4784724443dab185a32d2ba8de5c9e4222293cde345f6ff44e505be71f5ff81b/diff:/var/lib/docker/overlay2/244069e057986e2552cbe1cb72155e1b6db7aca8fc8a713ec144b9e1347cca30/diff:/var/lib/docker/overlay2/b8a950a4431f08e8053538c6cec6ba49711681d986d1c2590ad795b9c6aac487/diff:/var/lib/docker/overlay2/89bf9e686742a9ee63949bf4d3b208accca5ecbc1205a2e8f780dbe17b3f9ef9/diff:/var/lib/docker/overlay2/6bb8ad1c54bc24abe9322d6fad9f46fc66a6e7ae42d19b260b100812d97fba26/diff:/var/lib/docker/overlay2/640dc40711366eefdc38587353d7800897ec5b45fb0486472d1bbe1802e322be/diff",
            "MergedDir": "/var/lib/docker/overlay2/46d2bd8e88b548c4cf545a7528395a9c267e4a452c2538d423d3f88c976d3d4a/merged",
            "UpperDir": "/var/lib/docker/overlay2/46d2bd8e88b548c4cf545a7528395a9c267e4a452c2538d423d3f88c976d3d4a/diff",
            "WorkDir": "/var/lib/docker/overlay2/46d2bd8e88b548c4cf545a7528395a9c267e4a452c2538d423d3f88c976d3d4a/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:98b5f35ea9d3eca6ed1881b5fe5d1e02024e1450822879e4c13bb48c9386d0ad",
            "sha256:63ee5826db61f064964989dd6ae3db681127d6132ad3de1463ca92e7a450d60f",
            "sha256:71ba92f5a9a57097a0a56b315ccee951691079302bad9c8890e97a203f26e52c",
            "sha256:2d7cf84063bc8d4bc0c7246cb7643cebaa6b2b3ba19f38fe03336d4a2dae5ebe",
            "sha256:b6740c95dd235c5664a61ddb73c5daa2828521c74869302c38310dd56d1ff65b",
            "sha256:266221ba5c8909d205c4695c8219cab273c3fb90914c6e0b6f51a86a90485449",
            "sha256:0afc6b8ba3c7782e6731d7a80210b0352df18e78e22bf74c7a87119ee13f7916",
            "sha256:934c780e51317f2970c7731827258d19da94d2270d8d3d5543e9fe6df0897973",
            "sha256:6bb5b4903bd522150de2df7824113b83f5e8ef04c8a3ebe2d4b15c5e84ec88b3",
            "sha256:f70c696ecd09a0e25cbc0f1ac6f78511632606367046c5bb37874cc2416cea68",
            "sha256:5d3fdf080a40e205aa0cbc9ba3fe34b17813768e211f331e88c9f83c5ad08b16",
            "sha256:ce9a1ac4045410f4def7f161f2427a1126052434123cfead9b5df44d1f0d068b",
            "sha256:cf1afc8449c37e96ed4eb627640f793eae38ad46ca4019ecf367d57715ac5f7d",
            "sha256:d734805e6bfb0716d2ac63f8f6abe29ffd1adfe186e209812a3b37250f7bdbd0"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-11-09T10:59:46.545017254+08:00"
    }
}

更多版本

docker.io/postgres:12.19-bullseye

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

docker.io/postgres:15-alpine

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

docker.io/postgres:12.19-alpine3.20

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

docker.io/postgres:16.3-alpine3.20

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

docker.io/postgres:14-alpine

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

docker.io/postgres:15-alpine

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

docker.io/postgres:15.4

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

docker.io/postgres:9.6.21-alpine

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

docker.io/postgres:13.8

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

docker.io/postgres:16

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

docker.io/postgres:9.6.24

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

docker.io/postgres:15.3

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

docker.io/postgres:16.3

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

docker.io/postgres:16.3-bookworm

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

docker.io/postgres:14.2-alpine

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

docker.io/postgres:16.4

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

docker.io/postgres:12.2

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

docker.io/postgres:17

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

docker.io/postgres:17-alpine

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

docker.io/postgres:14.12

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

docker.io/postgres:13.14

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

docker.io/postgres:10-alpine

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

docker.io/postgres:alpine

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

docker.io/postgres:14.7-alpine3.17

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

docker.io/postgres:14.11

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

docker.io/postgres:12.3

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

docker.io/postgres:12

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