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

docker.io/library/postgres:14.13-alpine3.20 - 国内下载镜像源 浏览次数:20 安全受验证的发布者-Docker
## 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:14.13-alpine3.20
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/postgres:14.13-alpine3.20
镜像ID sha256:638c4cf7d9b9872b57043b0fc1eccf40852e99b192876e009536c13243900fd8
镜像TAG 14.13-alpine3.20
大小 246.91MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD postgres
启动入口 docker-entrypoint.sh
工作目录 /
OS/平台 linux/amd64
浏览量 20 次
贡献者 ch*******i@qq.com
镜像创建 2024-08-08T16:52:20Z
同步时间 2024-11-14 11:17
更新时间 2024-11-21 14:13
开放端口
5432/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GOSU_VERSION=1.17 LANG=en_US.utf8 PG_MAJOR=14 PG_VERSION=14.13 PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56 DOCKER_PG_LLVM_DEPS=llvm15-dev clang15 PGDATA=/var/lib/postgresql/data
镜像安全扫描 查看Trivy扫描报告

系统OS: alpine 3.20.3 扫描引擎: Trivy 扫描时间: 2024-11-14 11:17

低危漏洞:1 中危漏洞:20 高危漏洞:31 严重漏洞:3

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像历史

大小 创建时间 层信息
0.00B 2024-08-09 00:52:20 CMD ["postgres"]
0.00B 2024-08-09 00:52:20 EXPOSE map[5432/tcp:{}]
0.00B 2024-08-09 00:52:20 STOPSIGNAL SIGINT
0.00B 2024-08-09 00:52:20 ENTRYPOINT ["docker-entrypoint.sh"]
23.00B 2024-08-09 00:52:20 RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
14.96KB 2024-08-09 00:52:20 COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
0.00B 2024-08-09 00:52:20 VOLUME [/var/lib/postgresql/data]
0.00B 2024-08-09 00:52:20 RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
0.00B 2024-08-09 00:52:20 ENV PGDATA=/var/lib/postgresql/data
0.00B 2024-08-09 00:52:20 RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
57.37KB 2024-08-09 00:52:20 RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
236.44MB 2024-08-09 00:52:20 RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
0.00B 2024-08-09 00:52:20 ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
0.00B 2024-08-09 00:52:20 ENV PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
0.00B 2024-08-09 00:52:20 ENV PG_VERSION=14.13
0.00B 2024-08-09 00:52:20 ENV PG_MAJOR=14
0.00B 2024-08-09 00:52:20 RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
0.00B 2024-08-09 00:52:20 ENV LANG=en_US.utf8
4.00B 2024-08-09 00:52:20 RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2.60MB 2024-08-09 00:52:20 RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; 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; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
0.00B 2024-08-09 00:52:20 ENV GOSU_VERSION=1.17
3.07KB 2024-08-09 00:52:20 RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
0.00B 2024-08-09 00:52:20 CMD ["/bin/sh"]
7.80MB 2024-08-09 00:52:20 ADD alpine-minirootfs-3.20.3-x86_64.tar.gz / # buildkit

镜像信息

{
    "Id": "sha256:638c4cf7d9b9872b57043b0fc1eccf40852e99b192876e009536c13243900fd8",
    "RepoTags": [
        "postgres:14.13-alpine3.20",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/postgres:14.13-alpine3.20"
    ],
    "RepoDigests": [
        "postgres@sha256:3f5fc44eeb8e8b42448e218f05299105761a2c33b54a89d9fd06c87cd5f7b043",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/postgres@sha256:7f0e15128a7add7150813caba38ef10e51b60d66b94d861245beddc83d3eeb3c"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-08-08T16:52:20Z",
    "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",
            "GOSU_VERSION=1.17",
            "LANG=en_US.utf8",
            "PG_MAJOR=14",
            "PG_VERSION=14.13",
            "PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56",
            "DOCKER_PG_LLVM_DEPS=llvm15-dev \t\tclang15",
            "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": 246914819,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/58c5dc69ae4c815f5b0157760e25d8c8d179092784d76426b91999c53fa3d60b/diff:/var/lib/docker/overlay2/921ea18ff7786ead8e1750853a68a99e1ccb911c35576b88bce5086249618fb0/diff:/var/lib/docker/overlay2/409d540331ec2de1c4e05be451685deccb027d9edd67dc7d9f10394fc562745e/diff:/var/lib/docker/overlay2/2590fb86581455fb8b4ee14eda2186f9542cdb6db1e2130efe71acb23a209863/diff:/var/lib/docker/overlay2/952de6744503155a65d04972b8c953d07b86c7fbd339dcc9507c350f5afd5d31/diff:/var/lib/docker/overlay2/0079c5ead6d52095d97107681bb0b6a693e5daafcd8c1e3632cc365d0bc21e8e/diff:/var/lib/docker/overlay2/b22e7dc60ebf0d5e6f06283e7d4fe4310bd2ffe2c488d12444c5d3745fdce00e/diff:/var/lib/docker/overlay2/cdcfc0d6f07e5559b6420131861003439c7889b89c92537b286021225202b8f8/diff:/var/lib/docker/overlay2/aff12da14092c65fc233cf6b900fb88c44fc1d78d3e1029dbbd4965214254978/diff:/var/lib/docker/overlay2/23c5724f3a35122d45237c48d0eec74bfb90f129834f1ecb674937c0af9f9db3/diff",
            "MergedDir": "/var/lib/docker/overlay2/3c95f226cfeaf6afd57083049f2f9c38849738026624383fe9cb5839d3c701e1/merged",
            "UpperDir": "/var/lib/docker/overlay2/3c95f226cfeaf6afd57083049f2f9c38849738026624383fe9cb5839d3c701e1/diff",
            "WorkDir": "/var/lib/docker/overlay2/3c95f226cfeaf6afd57083049f2f9c38849738026624383fe9cb5839d3c701e1/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:75654b8eeebd3beae97271a102f57cdeb794cc91e442648544963a7e951e9558",
            "sha256:ac8dc48585cce61f48c5c661dd6cf0e8e6c124cc8d61fea70dc9ad5f13d424fc",
            "sha256:87bf2d078f01fe3dc2af4651f336361e5f3614b1da2a5f76746a83f4360511b2",
            "sha256:0ea169b171498a984ffcca932c074260c95ea95b18a1d948ef111f4dc591d708",
            "sha256:32d715bac00b52e2a0bc8aafc7972c37c24220ab4d029bdb02e6d20707bc5e13",
            "sha256:7cbf76d1b6b8b3be3866d1cd7471ac57f35876febd030fa088cabe203ed0bdfb",
            "sha256:fc728e22ef0f062a47af7f79f1b9c39049ea2e687b290583cf25f479a64af480",
            "sha256:4985f846c59183647ee60005619faed4b37c048a0a6f30ef3e818326a9d1cfcb",
            "sha256:80b9aa1aaded1789d474b28be1ceb1b8dfc2ab3cab505b269b33bfe61970430b",
            "sha256:62da249876066c9768ea03e0a6d2450ee4079cad41454987391b8816ae78ffba",
            "sha256:0aaa6ffce19cd50b5e7c07b87a628ba95fa1f9905d16b687499f5118e34a5229"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-11-14T11:16:48.834299254+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
291

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
14