docker.io/library/postgres:12.5 linux/arm64

docker.io/library/postgres:12.5 - 国内下载镜像源 浏览次数:14 安全受验证的发布者-Docker 温馨提示: 这是一个 linux/arm64 系统架构镜像
## PostgreSQL 镜像描述 ### 简介 PostgreSQL 是一个开放源代码的关系数据库管理系统 (RDBMS)。它支持多种操作系统平台,包括 Linux、Unix 和 Windows。 ### 特性 - 支持事务处理 - 支持视图、触发器和存储过程 - 支持SQL和JSON数据类型 - 支持多线程访问 ### 使用场景 PostgreSQL 适用于需要高可靠性的数据库应用,例如大型企业级应用、Web 应用、数据库驱动的系统等。 ### 镜像信息 镜像名称: `docker.io/library/postgres` 镜像大小: 434MB (最新版) 镜像更新时间: 不定期更新 ### 部署说明 - 使用 Docker Compose 运行 PostgreSQL。 - 设置环境变量以指定数据库用户名和密码。 ### 相关参考 - [PostgreSQL 官方文档](https://www.postgresql.org/) - [Docker PostgreSQL 镜像 README](https://hub.docker.com/_/postgres)
源镜像 docker.io/library/postgres:12.5
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/postgres:12.5-linuxarm64
镜像ID sha256:12521fe351efb944795d11d1f62300433231b199523943d74e62aeaba0c2137e
镜像TAG 12.5-linuxarm64
大小 299.66MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD postgres
启动入口 docker-entrypoint.sh
工作目录
OS/平台 linux/arm64
浏览量 14 次
贡献者
镜像创建 2021-02-09T07:32:56.060591442Z
同步时间 2024-11-16 11:26
更新时间 2024-11-20 08:21
开放端口
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.5-1.pgdg100+1 PGDATA=/var/lib/postgresql/data
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 10.8 扫描引擎: Trivy 扫描时间: 2024-11-16 11:26

低危漏洞:166 中危漏洞:175 高危漏洞:186 严重漏洞:44

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像历史

大小 创建时间 层信息
0.00B 2021-02-09 15:32:56 /bin/sh -c #(nop) CMD ["postgres"]
0.00B 2021-02-09 15:32:54 /bin/sh -c #(nop) EXPOSE 5432
0.00B 2021-02-09 15:32:53 /bin/sh -c #(nop) STOPSIGNAL SIGINT
0.00B 2021-02-09 15:32:53 /bin/sh -c #(nop) ENTRYPOINT ["docker-entrypoint.sh"]
34.00B 2021-02-09 15:32:52 /bin/sh -c ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
11.31KB 2021-02-09 15:32:49 /bin/sh -c #(nop) COPY file:e9c9c5e19c7b014c81f4ef8bcc5c1f247c4d9b165d34d35e9a28ca5adb5e0ab3 in /usr/local/bin/
0.00B 2021-02-09 15:32:48 /bin/sh -c #(nop) VOLUME [/var/lib/postgresql/data]
0.00B 2021-02-09 15:32:47 /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
0.00B 2021-02-09 15:32:44 /bin/sh -c #(nop) ENV PGDATA=/var/lib/postgresql/data
0.00B 2021-02-09 15:32:43 /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 2021-02-09 15:32:42 /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
53.78KB 2021-02-09 15:32:39 /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
196.16MB 2021-02-09 15:32:36 /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 2021-02-09 15:32:06 /bin/sh -c #(nop) ENV PG_VERSION=12.5-1.pgdg100+1
0.00B 2021-02-09 15:32:05 /bin/sh -c #(nop) ENV PG_MAJOR=12
2.88KB 2021-02-09 15:30:57 /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 2021-02-09 15:30:54 /bin/sh -c mkdir /docker-entrypoint-initdb.d
1.38MB 2021-02-09 15:30:52 /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 2021-02-09 15:30:43 /bin/sh -c #(nop) ENV LANG=en_US.utf8
24.93MB 2021-02-09 15:30:42 /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.26MB 2021-02-09 15:30:28 /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 2021-02-09 15:30:13 /bin/sh -c #(nop) ENV GOSU_VERSION=1.12
332.60KB 2021-02-09 15:30:12 /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.13MB 2021-02-09 15:30:09 /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 2021-02-09 10:41:13 /bin/sh -c #(nop) CMD ["bash"]
63.42MB 2021-02-09 10:41:10 /bin/sh -c #(nop) ADD file:d906dedaf14d8e3874b46787f7a1dbf268bc124c4e1dd32f13f3079e12f22238 in /

镜像信息

{
    "Id": "sha256:12521fe351efb944795d11d1f62300433231b199523943d74e62aeaba0c2137e",
    "RepoTags": [
        "postgres:12.5",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/postgres:12.5-linuxarm64"
    ],
    "RepoDigests": [
        "postgres@sha256:d233caaf92c6114ccc1f903c578308e710a73a5fd36c15fe0999c24a17e32ed1",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/postgres@sha256:a346fb456de348fb29663e335f0566ccea12ec8c0083ede43b9077847a76e071"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2021-02-09T07:32:56.060591442Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "19.03.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/12/bin",
            "GOSU_VERSION=1.12",
            "LANG=en_US.utf8",
            "PG_MAJOR=12",
            "PG_VERSION=12.5-1.pgdg100+1",
            "PGDATA=/var/lib/postgresql/data"
        ],
        "Cmd": [
            "postgres"
        ],
        "Image": "sha256:96dcd083120d42b4d69431a97496bb68c891edf6c67c8de5822132193264925d",
        "Volumes": {
            "/var/lib/postgresql/data": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null,
        "StopSignal": "SIGINT"
    },
    "Architecture": "arm64",
    "Os": "linux",
    "Size": 299664015,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/c0d4e6e0ea2b913bda7d8be6445b8cec29f699e4682bfb59c168bd7bfa5ad656/diff:/var/lib/docker/overlay2/ee3f7447f8edac2330344e5190cb4a21533cf3e9f03f655aaa5c50aeb5170f6f/diff:/var/lib/docker/overlay2/d22ef30aa5b2d95ab2ed83a9b63faceec5e79008413996ac4fcb33b773ddccb2/diff:/var/lib/docker/overlay2/6d06c0a4a3fa6692d385b8a0b5001b56c6601664ffe44b7d8f0513055ea2d6ac/diff:/var/lib/docker/overlay2/84153778d13d3c9c2d20c55b7707487becd2d73e1482caf221384493231f8a00/diff:/var/lib/docker/overlay2/2001065e769a2cc41a37291a425787af62be2765a7ab9b924d7088eaa014c1b0/diff:/var/lib/docker/overlay2/2f72bcde64aef7cf33c367fa2b09971b595632e279f63e95fb8cc448fdf6b0ba/diff:/var/lib/docker/overlay2/9e9d8efeb06e0e8bf87164cd3570107b0e50e938ae452a24ffaca40ba7cfc715/diff:/var/lib/docker/overlay2/d919d765175430f3738a5e01a388cc5b881d932018208050e5be97bb8d5ad5be/diff:/var/lib/docker/overlay2/dad30808817dcb19eaddf5d306dfd57fd214f710a89db8fa032312913e3aeb15/diff:/var/lib/docker/overlay2/3ef7b12ef2f2bf042ac7b6f94de655f4db7deaeeef0853a52fa7e2fb581452dc/diff:/var/lib/docker/overlay2/e38b407ee024b391216d0bf00957e4fd93c1a4566de6e4b8b5efd4aee3efea23/diff:/var/lib/docker/overlay2/739e041bf6f973a1981e72d62e02771c8cc65160c92e16520f9f1cf2488bc6f3/diff",
            "MergedDir": "/var/lib/docker/overlay2/a2babc7b619a51f7e483138569bb49a51375265e6b824378841f4da2da67d961/merged",
            "UpperDir": "/var/lib/docker/overlay2/a2babc7b619a51f7e483138569bb49a51375265e6b824378841f4da2da67d961/diff",
            "WorkDir": "/var/lib/docker/overlay2/a2babc7b619a51f7e483138569bb49a51375265e6b824378841f4da2da67d961/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:ee0f2ba1986dff5aa0be25bc63568dbd6c37859e67d928769144441e3eb779e2",
            "sha256:74771ad60efa9162f39782515750fb2808c35d34a36e56b512d00ca2c3cfdde3",
            "sha256:07946077181bcd80a6c7e85b968c0f949f92bf8d37d9e9c5246aaf7ec7def8b7",
            "sha256:29b65f6e1e94ce47002c22169dc2eae0d2cb3ed5bd7423e65c23b9469631818c",
            "sha256:c00b314745c82b97cb4cdb8771a1177e770cd46f4ca1902ed54867dc21d050a4",
            "sha256:16d23c249a9b0ca93ea93f9a16d9efe6edcfa2b0f03a64bfad6f3507a61f5380",
            "sha256:bfdfb02c0a9baa3686786a343a6a2e4856d4720c89dcf1ee83b8a5857a7c42da",
            "sha256:266b53841899279c12a2d6cad8f26060d98f9dafeab8f59fd141561b674273d9",
            "sha256:b74371c19b2ea921d93096686abd773fb620c75127c4e85d0cd3038f22f0d3f6",
            "sha256:8fef7e88d01beecb44145a28d8e41a80ce56a29b6f35524b78f0c43c07d9c9d7",
            "sha256:954e0bafe4553b12dc3f2d8fb99a5a5434609142220fd877fd31bf23d43de282",
            "sha256:2a5f73187b05931044273af6fa9e79b1c25e2b1cf6d403000a11e3ad29ff7ae9",
            "sha256:b8b010813172e0906c2d594fa30ee93a61ee0a1dd988453cd926306ac49c80aa",
            "sha256:16dfda4427756448f09238dfec98658b6a3ba109ef96817146a73fb63834b24d"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-11-16T11:26:27.444801693+08:00"
    }
}

更多版本

docker.io/library/postgres:15.1

linux/amd64 docker.io378.69MB2024-09-13 17:49
91

docker.io/library/postgres:latest

linux/amd64 docker.io431.70MB2024-09-24 16:51
290

docker.io/library/postgres:14.13-alpine3.20

linux/amd64 docker.io246.91MB2024-11-14 11:17
19

docker.io/library/postgres:12.5

linux/arm64 docker.io299.66MB2024-11-16 11:26
13