docker.io/postgres:12.19-alpine3.20 linux/amd64

docker.io/postgres:12.19-alpine3.20 - 国内下载镜像源 浏览次数:91 安全受验证的发布者-Postgres
PostgreSQL 是一个开源的关系数据库管理系统(RDBMS),提供了传输控制协议(TCP)上的 PostgreSQL 服务。该镜像支持多种操作系统和存储引擎,方便开发、测试和部署应用程序。
源镜像 docker.io/postgres:12.19-alpine3.20
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:12.19-alpine3.20
镜像ID sha256:82098865f8a725cf1586987346bce284420684a1da8a950dd62150ce67eef66a
镜像TAG 12.19-alpine3.20
大小 236.26MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD postgres
启动入口 docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 91 次
贡献者
镜像创建 2024-06-03T20:57:56Z
同步时间 2024-06-28 17:32
更新时间 2024-09-19 14:51
开放端口
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=12 PG_VERSION=12.19 PG_SHA256=617e3de52c22e822f4f57d01d5b2240503e198a9eccaf598a851109bd18e6fbb DOCKER_PG_LLVM_DEPS=llvm15-dev clang15 PGDATA=/var/lib/postgresql/data

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

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

Containerd拉取命令

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

Shell快速替换命令

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

镜像历史

大小 创建时间 层信息
0.00B 2024-06-04 04:57:56 CMD ["postgres"]
0.00B 2024-06-04 04:57:56 EXPOSE map[5432/tcp:{}]
0.00B 2024-06-04 04:57:56 STOPSIGNAL SIGINT
0.00B 2024-06-04 04:57:56 ENTRYPOINT ["docker-entrypoint.sh"]
23.00B 2024-06-04 04:57:56 RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
14.96KB 2024-06-04 04:57:56 COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
0.00B 2024-06-04 04:57:56 VOLUME [/var/lib/postgresql/data]
0.00B 2024-06-04 04:57:56 RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
0.00B 2024-06-04 04:57:56 ENV PGDATA=/var/lib/postgresql/data
0.00B 2024-06-04 04:57:56 RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
53.32KB 2024-06-04 04:57:56 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
225.79MB 2024-06-04 04:57:56 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 ; 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 ; 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-06-04 04:57:56 ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
0.00B 2024-06-04 04:57:56 ENV PG_SHA256=617e3de52c22e822f4f57d01d5b2240503e198a9eccaf598a851109bd18e6fbb
0.00B 2024-06-04 04:57:56 ENV PG_VERSION=12.19
0.00B 2024-06-04 04:57:56 ENV PG_MAJOR=12
0.00B 2024-06-04 04:57:56 RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
0.00B 2024-06-04 04:57:56 ENV LANG=en_US.utf8
4.00B 2024-06-04 04:57:56 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-06-04 04:57:56 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-06-04 04:57:56 ENV GOSU_VERSION=1.17
3.07KB 2024-06-04 04:57:56 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; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit
0.00B 2024-06-04 04:57:56 /bin/sh -c #(nop) CMD ["/bin/sh"]
7.80MB 2024-06-04 04:57:56 /bin/sh -c #(nop) ADD file:33ebe56b967747a97dcec01bc2559962bee8823686c9739d26be060381bbb3ca in /

镜像信息

{
    "Id": "sha256:82098865f8a725cf1586987346bce284420684a1da8a950dd62150ce67eef66a",
    "RepoTags": [
        "postgres:12.19-alpine3.20",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:12.19-alpine3.20"
    ],
    "RepoDigests": [
        "postgres@sha256:f2d204bc40c7cf3b929977208e0eda0d5672b5c4c3f788e886e90e12982bf8f0",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres@sha256:0a98da8ce72621aeaa266a7b6d9d0f9b8d9a4a8cd78e4cc7c6dcd52688d78c2b"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-06-03T20:57:56Z",
    "Container": "",
    "ContainerConfig": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": null,
        "Cmd": null,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": 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=12",
            "PG_VERSION=12.19",
            "PG_SHA256=617e3de52c22e822f4f57d01d5b2240503e198a9eccaf598a851109bd18e6fbb",
            "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": 236260871,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/1dce308930864a7a495895767a8c43ef040236eff5aa8a5b104302cdf32fd5a1/diff:/var/lib/docker/overlay2/f68bd4cabb3df60942d8728394830226b79b0af6bc33c2f44a806eb84b62e2ed/diff:/var/lib/docker/overlay2/b542707d2e213893f0c4b695f95f7043c328cd456f60b9762b7ae08138628247/diff:/var/lib/docker/overlay2/ff107d983a93d4cb505efe6a755e8a542b15524b530a4cf3d0f57440c608824b/diff:/var/lib/docker/overlay2/e535867a3e70ee5dc6e990d32e9aabdcfcc287570e54bd941169d277d9b64da8/diff:/var/lib/docker/overlay2/741cf613ef16c3b24e36133204184cfee10b208c926266f625978c3f7355525b/diff:/var/lib/docker/overlay2/3f156a2502e5689da43b89af3faa9bd9ec7ee723bc7dd1355cd8f154364b61f6/diff:/var/lib/docker/overlay2/feb9e22ecda783b078df6fad796873622cda5dbfe89c522b7843266c77d3f80a/diff:/var/lib/docker/overlay2/a7c79b7fdeac49b6ac67459fcbe0c7ae1025c3b96d6d466d7d802e07a0cc12e6/diff:/var/lib/docker/overlay2/8d47e227181e4f4a686bc7c637a98cc9f2156653c4946aafecf8b1b6fe5f4a13/diff",
            "MergedDir": "/var/lib/docker/overlay2/a113116b0d2c1c7655f7b7978eb5253c24900a37e423f8010263093ee8bcf8a7/merged",
            "UpperDir": "/var/lib/docker/overlay2/a113116b0d2c1c7655f7b7978eb5253c24900a37e423f8010263093ee8bcf8a7/diff",
            "WorkDir": "/var/lib/docker/overlay2/a113116b0d2c1c7655f7b7978eb5253c24900a37e423f8010263093ee8bcf8a7/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:94e5f06ff8e3d4441dc3cd8b090ff38dc911bfa8ebdb0dc28395bc98f82f983f",
            "sha256:6e71a5760c22869a7e7b0bbae29decf76f8f00fd4e7e2b716b036aaa1f5f5fb5",
            "sha256:dc11d50d0648fbf83773a7ebc1224c59119f1c8fb686c6ee7320ab37e07a08a0",
            "sha256:bfc6c6afd120982bebb35e080607a254ceff8b0c896cf3ba4f0e776567d1ae7b",
            "sha256:575f622946ca8695bac014902511409e5abc20bfc0a863eb564527145de373a0",
            "sha256:c21546e7c23a2969c7b1a2aafdc9cca8d736379cc0c24d234d0ceb5d05c56474",
            "sha256:ac85fffd289e50fb86422f2560512be906328b7f55ff21d17af42bd0de4382b2",
            "sha256:0f41ef15b51f2fda8cae84532c4b4e09a73a2b0fc66f887606c7e7bcbb24d785",
            "sha256:c083c7298518243ed7fe40f2775e4027156e87a597f925b27d0543d845b0df5c",
            "sha256:86a25a908e6212a351ac55ab066ebb2216e2c37c0d973944f64a88aa61f594b4",
            "sha256:eb8eee087f00aa79fb3b84e4538cd9b153df57a9f1e6534d62347ab3f3ca94fa"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-06-28T09:31:26.953715211Z"
    }
}

更多版本