docker.io/library/postgres:latest linux/amd64

docker.io/library/postgres:latest - 国内下载镜像源 浏览次数:296 安全受验证的发布者-Docker

温馨提示:此镜像为latest tag镜像,本站无法保证此版本为最新镜像

## 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:latest
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/postgres:latest
镜像ID sha256:b781f3a53e61df916d97dffe6669ef32b08515327ee3a398087115385b5178f5
镜像TAG latest
大小 431.70MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD postgres
启动入口 docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 296 次
贡献者 46******8@qq.com
镜像创建 2024-08-08T17:20:28Z
同步时间 2024-09-24 16:51
更新时间 2024-11-23 11:25
开放端口
5432/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin GOSU_VERSION=1.17 LANG=en_US.utf8 PG_MAJOR=16 PG_VERSION=16.4-1.pgdg120+1 PGDATA=/var/lib/postgresql/data
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 12.7 扫描引擎: Trivy 扫描时间: 2024-10-27 03:47

低危漏洞:105 中危漏洞:48 高危漏洞:42 严重漏洞:4

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像历史

大小 创建时间 层信息
0.00B 2024-08-09 01:20:28 CMD ["postgres"]
0.00B 2024-08-09 01:20:28 EXPOSE map[5432/tcp:{}]
0.00B 2024-08-09 01:20:28 STOPSIGNAL SIGINT
0.00B 2024-08-09 01:20:28 ENTRYPOINT ["docker-entrypoint.sh"]
23.00B 2024-08-09 01:20:28 RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
14.96KB 2024-08-09 01:20:28 COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
0.00B 2024-08-09 01:20:28 VOLUME [/var/lib/postgresql/data]
0.00B 2024-08-09 01:20:28 RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
0.00B 2024-08-09 01:20:28 ENV PGDATA=/var/lib/postgresql/data
0.00B 2024-08-09 01:20:28 RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
59.92KB 2024-08-09 01:20:28 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
314.38MB 2024-08-09 01:20:28 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 01:20:28 ENV PG_VERSION=16.4-1.pgdg120+1
0.00B 2024-08-09 01:20:28 ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin
0.00B 2024-08-09 01:20:28 ENV PG_MAJOR=16
3.98KB 2024-08-09 01:20:28 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 01:20:28 RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
3.18MB 2024-08-09 01:20:28 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 01:20:28 ENV LANG=en_US.utf8
25.19MB 2024-08-09 01:20:28 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 01:20:28 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 01:20:28 ENV GOSU_VERSION=1.17
9.93MB 2024-08-09 01:20:28 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 01:20:28 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 01:20:28 /bin/sh -c #(nop) CMD ["bash"]
74.78MB 2024-08-09 01:20:28 /bin/sh -c #(nop) ADD file:d13afefcc2b0b02b598a3ac2598fe2187db41de1e17820e5b600a955b1429d59 in /

镜像信息

{
    "Id": "sha256:b781f3a53e61df916d97dffe6669ef32b08515327ee3a398087115385b5178f5",
    "RepoTags": [
        "postgres:latest",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/postgres:latest"
    ],
    "RepoDigests": [
        "postgres@sha256:026d0ab72b34310b68160ab9299aa1add5544e4dc3243456b94f83cb1c119c2c",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/postgres@sha256:e7535db1bbaabb3d6f1ecb2df7fabe8e084a0db79d049dcf4dc7dad5eaa4c410"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-08-08T17:20:28Z",
    "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/16/bin",
            "GOSU_VERSION=1.17",
            "LANG=en_US.utf8",
            "PG_MAJOR=16",
            "PG_VERSION=16.4-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": 431696476,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/5648db3bbbeddf4adf64a9f9a9b56a996aa1a38ffc569f01e1d90542c4f92805/diff:/var/lib/docker/overlay2/ba2e193cadf471d8b3ece4f034d7338117b33ac1dfec326388f917d24efa512c/diff:/var/lib/docker/overlay2/b9a44509245c60aa70e4cf3bf58cc0fbd41d1668d6543dccba5ed6a7224ec35f/diff:/var/lib/docker/overlay2/14357492979ca9278e59a1b8ccd877a146d8283c1b8acc71e025022d5a71f0ec/diff:/var/lib/docker/overlay2/e1861bed7f46b269b4fe90124e0f94873566515607faa88acdf274f1f19493ad/diff:/var/lib/docker/overlay2/8b05134f9eebbf5b518f74ea9e70b292b8c6c47ac3a41b9596fbb25a06f22893/diff:/var/lib/docker/overlay2/9e2443fe1906bb80e1c82f1c6fab9ef3781220b91335e01f99c4a0336383c2f2/diff:/var/lib/docker/overlay2/cadf4c393b074d870fac9d1ab7a5fd1fb61c0f9e55152be0a89607a1544cd177/diff:/var/lib/docker/overlay2/d1fb181e35dcfe674f74c863bfb4a11b77d4ae09aed6397ed68af47ace56eb99/diff:/var/lib/docker/overlay2/a5406d5dd8496d6e28f131d7573c0b91374257b9eb5a76031e2c242187c05f1d/diff:/var/lib/docker/overlay2/62b68ec37071962481f2e0d8e7132183f1c442dd078d8c59fc912f888f4c1622/diff:/var/lib/docker/overlay2/92c935916684c4bb1a08028cab64570a89ed9e3014217a9a47e01693a7c80cdf/diff:/var/lib/docker/overlay2/35d783ba1e40af320a2c83c510409780d32c332703501e9a591fa471ce729790/diff",
            "MergedDir": "/var/lib/docker/overlay2/3530cb028928bc0ccc2f1ed2d3d8ed52c44773ef81a3d8dc9c03669c01fca5d7/merged",
            "UpperDir": "/var/lib/docker/overlay2/3530cb028928bc0ccc2f1ed2d3d8ed52c44773ef81a3d8dc9c03669c01fca5d7/diff",
            "WorkDir": "/var/lib/docker/overlay2/3530cb028928bc0ccc2f1ed2d3d8ed52c44773ef81a3d8dc9c03669c01fca5d7/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:8e2ab394fabf557b00041a8f080b10b4e91c7027b7c174f095332c7ebb6501cb",
            "sha256:5712738f3a50f1eb57e78cd38adfba41734618c23ca678dcbce4e92e587a8dca",
            "sha256:36f0f14ad7df1da6d0c260a841a8f4eac53a4fea21e16a3ecf0166a2a55fad03",
            "sha256:135702ed761d2348b0e19a93a2ef565e06026a1750c6714b81b2a2d1e7dffd8a",
            "sha256:4ab68af6fd89c9b7b0a12a8cf35e608bea232937769332262335950df022da32",
            "sha256:c96559e63d5e59e7d8d32cdd6ff69f8795eb586262539e100b7a1fe7e753df98",
            "sha256:d730472e0a309a6e3eb522d85bcab7240e0e090714d24c4b5ff8d66f21bc0c4a",
            "sha256:20391b8d0488c8773cd79408fcf48a3bd8802274432cd13086e69b52914091fa",
            "sha256:146b5903afe5e05a941cfa2987d08a2cf5847ede3061802521d43bd3653cea8e",
            "sha256:a48624187891d74330f3dcdd4811a50247804331848125f5c4d65fbb8c4967e8",
            "sha256:3ee64126d6b53b6a33ce93a1582797362db453aa2b8f943e9fd0ef18c793b9d1",
            "sha256:a16a7f501e38da7e99050a4531338ffeccfb6d38abb6030e0a57c57008b19f45",
            "sha256:fe34a9befa9e446ef10c5939680553384d9ffd765a96fbb14a423a2cb268869e",
            "sha256:b33e3396ce853b36b6831c4ab0a65a28ca33149080f2eebcd2296b264525bc53"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-09-24T16:51:25.491835823+08:00"
    }
}

更多版本

docker.io/library/postgres:15.1

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

docker.io/library/postgres:latest

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

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

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

docker.io/library/postgres:12.5

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