docker.io/postgres:12.3 linux/amd64

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

系统OS: debian 10.5 扫描引擎: Trivy 扫描时间: 2024-11-07 08:48

低危漏洞:168 中危漏洞:186 高危漏洞:222 严重漏洞:44

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像历史

大小 创建时间 层信息
0.00B 2020-08-05 14:23:00 /bin/sh -c #(nop) CMD ["postgres"]
0.00B 2020-08-05 14:23:00 /bin/sh -c #(nop) EXPOSE 5432
0.00B 2020-08-05 14:23:00 /bin/sh -c #(nop) ENTRYPOINT ["docker-entrypoint.sh"]
34.00B 2020-08-05 14:23:00 /bin/sh -c ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
10.93KB 2020-08-05 14:22:59 /bin/sh -c #(nop) COPY file:bf774aaf2659f8308202ce0332f960783bfecabcf593dd9b2d25e19fe5c4b946 in /usr/local/bin/
0.00B 2020-08-05 14:22:59 /bin/sh -c #(nop) VOLUME [/var/lib/postgresql/data]
0.00B 2020-08-05 14:22:59 /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
0.00B 2020-08-05 14:22:58 /bin/sh -c #(nop) ENV PGDATA=/var/lib/postgresql/data
0.00B 2020-08-05 14:22:58 /bin/sh -c #(nop) ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/12/bin
0.00B 2020-08-05 14:22:58 /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
53.56KB 2020-08-05 14:22:57 /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
203.57MB 2020-08-05 14:22:56 /bin/sh -c set -ex; export PYTHONDONTWRITEBYTECODE=1; dpkgArch="$(dpkg --print-architecture)"; case "$dpkgArch" in amd64 | arm64 | i386 | ppc64el) echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main $PG_MAJOR" > /etc/apt/sources.list.d/pgdg.list; apt-get update; ;; *) echo "deb-src http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main $PG_MAJOR" > /etc/apt/sources.list.d/pgdg.list; case "$PG_MAJOR" in 9.* | 10 ) ;; *) echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list.d/pgdg.list; ;; esac; tempDir="$(mktemp -d)"; cd "$tempDir"; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get build-dep -y postgresql-common pgdg-keyring "postgresql-$PG_MAJOR=$PG_VERSION" ; DEB_BUILD_OPTIONS="nocheck parallel=$(nproc)" apt-get source --compile postgresql-common pgdg-keyring "postgresql-$PG_MAJOR=$PG_VERSION" ; apt-mark showmanual | xargs apt-mark auto > /dev/null; apt-mark manual $savedAptMark; ls -lAFh; dpkg-scanpackages . > Packages; grep '^Package: ' Packages; echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list; apt-get -o Acquire::GzipIndexes=false update; ;; 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' -- '{}' +
0.00B 2020-08-05 14:22:37 /bin/sh -c #(nop) ENV PG_VERSION=12.3-1.pgdg100+1
0.00B 2020-08-05 14:22:37 /bin/sh -c #(nop) ENV PG_MAJOR=12
2.88KB 2020-08-05 14:21:58 /bin/sh -c set -ex; key='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; gpg --batch --export "$key" > /etc/apt/trusted.gpg.d/postgres.gpg; command -v gpgconf > /dev/null && gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-key list
0.00B 2020-08-05 14:21:57 /bin/sh -c mkdir /docker-entrypoint-initdb.d
1.39MB 2020-08-05 14:21:56 /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libnss-wrapper xz-utils ; rm -rf /var/lib/apt/lists/*
0.00B 2020-08-05 14:21:51 /bin/sh -c #(nop) ENV LANG=en_US.utf8
24.93MB 2020-08-05 14:21:51 /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
4.17MB 2020-08-05 14:21:44 /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
0.00B 2020-08-05 14:21:35 /bin/sh -c #(nop) ENV GOSU_VERSION=1.12
328.60KB 2020-08-05 14:21:35 /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
9.34MB 2020-08-05 14:21:34 /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
0.00B 2020-08-04 23:42:51 /bin/sh -c #(nop) CMD ["bash"]
69.22MB 2020-08-04 23:42:51 /bin/sh -c #(nop) ADD file:3af3091e7d2bb40bc1e6550eb5ea290badc6bbf3339105626f245a963cc11450 in /

镜像信息

{
    "Id": "sha256:b03968f50f0e9800f2488a393095a050b00e8cb382cf2776debb132ece6a8b6b",
    "RepoTags": [
        "postgres:12.3",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:12.3"
    ],
    "RepoDigests": [
        "postgres@sha256:a06e6e6e519b7a329c419f8221edec66cfc45511e8b80e262c12103ba745cf19",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres@sha256:86faa9d3c37c8a7db15b13dfdd9cc59c0f30c665f0c5dc082a07faceb3e56958"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2020-08-05T06:23:00.978363032Z",
    "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:/usr/lib/postgresql/12/bin",
            "GOSU_VERSION=1.12",
            "LANG=en_US.utf8",
            "PG_MAJOR=12",
            "PG_VERSION=12.3-1.pgdg100+1",
            "PGDATA=/var/lib/postgresql/data"
        ],
        "Cmd": [
            "postgres"
        ],
        "ArgsEscaped": true,
        "Image": "sha256:0341f6dc17de6d6ea1015be7bd68deafdd38a594323ef7311158ca1ef0c9cbc4",
        "Volumes": {
            "/var/lib/postgresql/data": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 313017754,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/94e7c7e97b0de6e34c8c1fd4366a376bb05eb68d4ebb8a5211aebd99da3ccd81/diff:/var/lib/docker/overlay2/4edb0335250a9f17ec9af666adefc82e30e275f13ab00d9b81a85fe68364fded/diff:/var/lib/docker/overlay2/cb01c3dadcaac19a25977ca663045f12ffc53a765661745cc5198015c1d46a56/diff:/var/lib/docker/overlay2/bea7b59a1d0a88ba57f5ce82ba1fa9f671202b8665408fe43782ab5aca9f73e5/diff:/var/lib/docker/overlay2/0e3f4c20a2de6ef43b39224a38f4acdd76c84b0442ca47f164949f7728819b4c/diff:/var/lib/docker/overlay2/794b5a498c119203083a3db8e22f8bb5d798c424adfac523a7e6c12da16c2203/diff:/var/lib/docker/overlay2/7b1990b35e46d0a7dcc62804f84fee7ccd096be0b8f66a281bb0762e377c7ebe/diff:/var/lib/docker/overlay2/17d57ed4b27ecfb51efc8bef4488436a08bfd2236c149e89f633be18395740e7/diff:/var/lib/docker/overlay2/bd27d96980e44521f0ecb24fad73a75f678c0d27fae53cd482dd3d82f6877d81/diff:/var/lib/docker/overlay2/54be2cb13b24254709b934d15f576fb6ccd849c1d21ef076fc7199aa21755547/diff:/var/lib/docker/overlay2/881d7cdd682c08ec7bec442082748250343f8ae5fb2039d5b855413e4700a62b/diff:/var/lib/docker/overlay2/d7f862e340796fe7e147b3ad3a39b0e32de4ec6f119303baa51f47527c0bb22b/diff:/var/lib/docker/overlay2/c521c8861937b9ebc91e2817c9cdadb8363e518531da101ddd65b67804dbf3fd/diff",
            "MergedDir": "/var/lib/docker/overlay2/b721093771abb2a43f0650c493dba1ba37823de76700cab66d128c9b7c028397/merged",
            "UpperDir": "/var/lib/docker/overlay2/b721093771abb2a43f0650c493dba1ba37823de76700cab66d128c9b7c028397/diff",
            "WorkDir": "/var/lib/docker/overlay2/b721093771abb2a43f0650c493dba1ba37823de76700cab66d128c9b7c028397/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:d0f104dc0a1f9c744b65b23b3fd4d4d3236b4656e67f776fe13f8ad8423b955c",
            "sha256:e1026b67f1e54a67d0a6045081a1fb48d3efc80fd11beaeeddd35256a4b3a66f",
            "sha256:0ff4c42f2c49efed758fa97049b800c15fc23712ee6e456d5d1aebdec5126456",
            "sha256:eef36c2511496dc32bac960fbdb494a49bebbf1789032b746c49c200e5bf2186",
            "sha256:f8c96e56903ca20ae8393fef80540d020ceb8df2559687fedd2722d7e74ea2e9",
            "sha256:be6aee51312ec1349e0e97ab93987ca77647e4b521f6bf811ec8bc734fbfa188",
            "sha256:b0048c63a87210ff6b46abcec1fabb757b11a0ac7ea92dd0f48894b1bd21f85b",
            "sha256:f4aad2d9f7b3bf9c8df23eb3e7000d2b0c3f296e82581e5d9bf18a228b41a67c",
            "sha256:64479f261f43c73caaa8208b45d079b7fb19373bd3cacfec15d5a683369cdc1f",
            "sha256:65de5d84a35b2341e5ee864eb5110df3c2a54186ae6e80145d48a3eb613998d1",
            "sha256:6f21f225472e075268e0f33ebf5bc3bc1323b58fdcab45aa3fa80b7f0c3f8ba3",
            "sha256:aee35c8cf6586d77477b36c6a8f39abb5db3bacc3ad98a81be5d073b7f2779c2",
            "sha256:9d51476af30ea17fd987ddd5b0a3f7e82ddbc2fb7e9be0f9434793705e7b75f8",
            "sha256:0bb97cfbc6424a44a7bebcd20a6bee9e2286b6e167f35c1a051aee2c114bda95"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-11-07T08:48:04.482396655+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
438

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
32