docker.io/postgres:16.3-bookworm linux/amd64

docker.io/postgres:16.3-bookworm - 国内下载镜像源 浏览次数:129 安全受验证的发布者-Postgres
PostgreSQL 是一个开源的关系数据库管理系统(RDBMS),提供了传输控制协议(TCP)上的 PostgreSQL 服务。该镜像支持多种操作系统和存储引擎,方便开发、测试和部署应用程序。
源镜像 docker.io/postgres:16.3-bookworm
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:16.3-bookworm
镜像ID sha256:07a4ee949b9e7851d9ef860fd36f486aa821f23e1c17939244155fe825eaf79a
镜像TAG 16.3-bookworm
大小 431.58MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD postgres
启动入口 docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 129 次
贡献者
镜像创建 2024-05-09T18:58:11Z
同步时间 2024-08-08 17:41
更新时间 2024-11-21 01:05
开放端口
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.3-1.pgdg120+1 PGDATA=/var/lib/postgresql/data

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像历史

大小 创建时间 层信息
0.00B 2024-05-10 02:58:11 CMD ["postgres"]
0.00B 2024-05-10 02:58:11 EXPOSE map[5432/tcp:{}]
0.00B 2024-05-10 02:58:11 STOPSIGNAL SIGINT
0.00B 2024-05-10 02:58:11 ENTRYPOINT ["docker-entrypoint.sh"]
23.00B 2024-05-10 02:58:11 RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
14.96KB 2024-05-10 02:58:11 COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
0.00B 2024-05-10 02:58:11 VOLUME [/var/lib/postgresql/data]
0.00B 2024-05-10 02:58:11 RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
0.00B 2024-05-10 02:58:11 ENV PGDATA=/var/lib/postgresql/data
0.00B 2024-05-10 02:58:11 RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
59.92KB 2024-05-10 02:58:11 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.27MB 2024-05-10 02:58:11 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-05-10 02:58:11 ENV PG_VERSION=16.3-1.pgdg120+1
0.00B 2024-05-10 02:58:11 ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin
0.00B 2024-05-10 02:58:11 ENV PG_MAJOR=16
3.98KB 2024-05-10 02:58:11 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-05-10 02:58:11 RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
3.18MB 2024-05-10 02:58:11 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-05-10 02:58:11 ENV LANG=en_US.utf8
25.19MB 2024-05-10 02:58:11 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-05-10 02:58:11 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-05-10 02:58:11 ENV GOSU_VERSION=1.17
9.93MB 2024-05-10 02:58:11 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-05-10 02:58:11 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; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit
0.00B 2024-05-10 02:58:11 /bin/sh -c #(nop) CMD ["bash"]
74.78MB 2024-05-10 02:58:11 /bin/sh -c #(nop) ADD file:6c4730e7b12278bc7eb83b3b9d659437c92c42fc7ee70922ae8c4bebfb56a602 in /

镜像信息

{
    "Id": "sha256:07a4ee949b9e7851d9ef860fd36f486aa821f23e1c17939244155fe825eaf79a",
    "RepoTags": [
        "postgres:16",
        "postgres:16.3",
        "postgres:16.3-bookworm",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:16",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:16.3",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:16.3-bookworm"
    ],
    "RepoDigests": [
        "postgres@sha256:d0f363f8366fbc3f52d172c6e76bc27151c3d643b870e1062b4e8bfe65baf609",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres@sha256:aed885731705b7245c0ff917ced05581234c0fb54637f2931f9ee5b1000f4244"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-05-09T18:58:11Z",
    "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.3-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": 431581956,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/119620e5a61cc52ccb6e2bb6b58288dc3a8bdb87870034fd42fa258a7345a83c/diff:/var/lib/docker/overlay2/cbcb82c327468bf6135f21ef1be6e9db8a1c954a011deca5b9192a9fa34fb89f/diff:/var/lib/docker/overlay2/b0899200e1c7142ec81a736d9a9531c4cf479c21da97274e9c83422fdabdbf94/diff:/var/lib/docker/overlay2/ff85ae59deb582b35ad6c4c12dee230ddad830b54d1764c3a943b05d92d8815a/diff:/var/lib/docker/overlay2/09b5ab4b839974ec280f26703bf54d7d1a122eb69b24b483f4a4661147804803/diff:/var/lib/docker/overlay2/0038d66b0d6e068d73a0024fef5b87da7b0f711ae93b37abd0db9c7b37ba0349/diff:/var/lib/docker/overlay2/9648cee708121f3714042ca9cf70fbfe0f94791307d65af3bc00b18c0ecc40bb/diff:/var/lib/docker/overlay2/a7e79656ba550c15eff42603f2f4fdf92331f6acd186be0f4ec4468c36a6d503/diff:/var/lib/docker/overlay2/2e585887bdbd0543099e1e0b95f1eac6c5e25413cd8f937770d0e4df317971e1/diff:/var/lib/docker/overlay2/7eaf23cea7e76bd393d58a4af5c52382546ce40c678a59a885a72dd4154efccf/diff:/var/lib/docker/overlay2/4e0485769227dda22f125697b63f109b750ac8190f67797479d9cd7926d012e2/diff:/var/lib/docker/overlay2/8f0345d27c570b94ba17fe2388acff3b31e478c21e2db489c2167422e330ffd3/diff:/var/lib/docker/overlay2/d5701a3790a457972a33516b4f1d7a80733d41290d122b5ba9bbae079fd2dc0b/diff",
            "MergedDir": "/var/lib/docker/overlay2/69bd850908072a699405e0b9eb02850b225b1ab92ecc23467836c6aa18ece7e0/merged",
            "UpperDir": "/var/lib/docker/overlay2/69bd850908072a699405e0b9eb02850b225b1ab92ecc23467836c6aa18ece7e0/diff",
            "WorkDir": "/var/lib/docker/overlay2/69bd850908072a699405e0b9eb02850b225b1ab92ecc23467836c6aa18ece7e0/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:e0781bc8667fb5ebf954df4ae52997f6f5568ec9f07e21e5db7c9d324ed41e1f",
            "sha256:3315240cb2257b4002aa155a3a829ed9d6deb3e458252d0726d6f75500c11ee3",
            "sha256:3edc329c0dc7bc15321159fd53d4b50ed6996afbe1e3f6323bc522b9dcca58b5",
            "sha256:e40b75ba341857aa0c6fda882f9e690174841d100d5f91e29243477077756d08",
            "sha256:3c843c28bf66b16220bf895eae6c9b3c07c80f369e0a3f95f39b78e17ad745ef",
            "sha256:481f411eb82da1c20d8b7cc6e40dac64e5d4c0d1bb861de6d230a8984733977a",
            "sha256:11dc232231e0e253b41e65604ad3b9760a870ac2d8a61d3e1a993f045d287076",
            "sha256:3601f93624bbb1d747b1233f3778d6d028e55af46555b69f9aa550297f5d78d0",
            "sha256:b6bca4e0c495541f851a70ae393b6755b0b6b9ae7091cc6200fda18d0bae8a04",
            "sha256:b8ba1625ffe9480d3d9f08d234ced567443fdaf028ac89a9e4e4b1dadc6b3b31",
            "sha256:ee84d96b82f63b207cfdfd1ae4be09ca146a428c63a8960f27da72ac30a6bc27",
            "sha256:704b64a3b03fad3f95969b4937ee261e705ddb5fa01efb63db6e096c827cb4c4",
            "sha256:11ef85db03285f887feaca2f3a3dadba61f17158c35de003da2c18850d3c73aa",
            "sha256:fa878f6b4a69df29ad99a5acd797d16d9e94af6f5253814ca103030bc175313b"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-08-08T17:41:48.486541109+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
128

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