docker.io/postgres:17 linux/amd64

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

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像历史

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

镜像信息

{
    "Id": "sha256:f0dfc903a6636f2648135b399caf4dcd9f5f595b485672ca96cd91d9fa48110c",
    "RepoTags": [
        "postgres:17",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:17"
    ],
    "RepoDigests": [
        "postgres@sha256:4ec37d2a07a0067f176fdcc9d4bb633a5724d2cc4f892c7a2046d054bb6939e5",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres@sha256:bfc2156f21adc2ef58de1dcc4ef01119a0d0eaf19dbbeb186f2ee3e82ba11ed3"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-09-26T18:19:57Z",
    "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/17/bin",
            "GOSU_VERSION=1.17",
            "LANG=en_US.utf8",
            "PG_MAJOR=17",
            "PG_VERSION=17.0-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": 434310457,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/14b8fb2491997f92bd5603ba0bd3e9554c59ebaf1c6e9dc55ab55f9a9d209285/diff:/var/lib/docker/overlay2/6d57d91b56e40218355f5510edb3b450c916ee3066032cbee39de0568875c75d/diff:/var/lib/docker/overlay2/933551ac3faa8862ffcbcbd19b794899aba87d0946c068af32665c0cf37e7aa0/diff:/var/lib/docker/overlay2/ba6dfdca8c1cdcaafe67c45447dc929725ca9b253d6dc49cb4f445503fddfe4d/diff:/var/lib/docker/overlay2/e40ca0d7e365c2988741cb77824ec4ae03434311b875e4163cc09ee8e49543b0/diff:/var/lib/docker/overlay2/db27532e13e53fd27c1a9ccac8a9ed6bbe38dc7bc57ee1ed8b489ccc0ad3c146/diff:/var/lib/docker/overlay2/042339a90e553dfcefb14daca4f204fbc333de6dd6a683f7e6149f24e80d71e8/diff:/var/lib/docker/overlay2/c64bf651f0088a4052a09a5bf1245e03b97862c7417a6b382d4e13a0a6bd7ced/diff:/var/lib/docker/overlay2/d2c3f5e236112f948abe94656f68f0413d9220c05e9b89ae00106abbaf9a8d9d/diff:/var/lib/docker/overlay2/c05dd7090ca5ac5cf32c70bb421a842df8b73e1627da51c03661d932c5528740/diff:/var/lib/docker/overlay2/de9701a89e535c6d4bd2046058a9f4aa9d326f0af278396beaa76a49de88d203/diff:/var/lib/docker/overlay2/ee2176d0ec765dea4b3b551e99f064097bc1e4aa845c1b70ced85d484f94af05/diff:/var/lib/docker/overlay2/1bccca92078a7af8b31c9945ce2f68029d684347892dd2e49c5a3b836eef3b8c/diff",
            "MergedDir": "/var/lib/docker/overlay2/ccf53df854f1dd93ab290ef2dd6e3a635c465fe2f24b410aa39ba028fa729018/merged",
            "UpperDir": "/var/lib/docker/overlay2/ccf53df854f1dd93ab290ef2dd6e3a635c465fe2f24b410aa39ba028fa729018/diff",
            "WorkDir": "/var/lib/docker/overlay2/ccf53df854f1dd93ab290ef2dd6e3a635c465fe2f24b410aa39ba028fa729018/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:8d853c8add5d1e7b0aafc4b68a3d9fb8e7a0da27970c2acf831fe63be4a0cd2c",
            "sha256:faebe022c0bac2816bac0d41e39c3735a789402cea6e585e22e8b6f56a350aa4",
            "sha256:c81c328e1fffb32b70e92819a5c36fba170d15b4909fba28b80a2ab557d8aedd",
            "sha256:5705d299bec7a4ed8e06b06c2278ad29053bd62f075e83a0da36d640c737c7ec",
            "sha256:80cb1d9b747ab1a0ef9bd89257b34d67192af5961025c334d8d3f24033af4b5f",
            "sha256:d127b0ada63d274474d8830448db362c7bebfbf1e94996044ef04eaa093ef3a4",
            "sha256:c02cb0c3f1b502e9318f42c0419a82493eb8f09ea3028adc3be85badcdebc80b",
            "sha256:554187801cd4395623678502be328c45ce45297cd4f96806a9b2ac342fc64f53",
            "sha256:f2f5232da4b4efa5aad46951d9153f0c5a087f66833af5099b321d37a142099d",
            "sha256:55af7f4c64f5607eb1f64674f07cd1afa8cce66bf2d7a40311b9a01c9e9fe250",
            "sha256:3e84089bdaa03d7485c2de0f7bcc403da39055706af8d263da1a0fc98a0b15cf",
            "sha256:ebc91341937f4be941adce2e3b5c827e403c9a53ce80ab74a1be7d99ee900906",
            "sha256:bd0357fb93f1832c2fa1d93f016ad603d7c30e15bd5d9d02d61cbe5e6af9ebca",
            "sha256:d6b35674380aca7924114f49d4e27d41b2f18ac2fbfe5b59e847fcb111d24628"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-10-01T13:14:35.203020678+08:00"
    }
}

更多版本

docker.io/postgres:12.19-bullseye

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

docker.io/postgres:15-alpine

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

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
315

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
128

docker.io/postgres:14.2-alpine

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

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
223

docker.io/postgres:17-alpine

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

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
178

docker.io/postgres:alpine

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

docker.io/postgres:14.7-alpine3.17

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

docker.io/postgres:14.11

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

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