docker.io/nextcloud/aio-postgresql:latest linux/amd64

docker.io/nextcloud/aio-postgresql:latest - 国内下载镜像源 浏览次数:195

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

Nextcloud aio-postgresql

docker.io/nextcloud/aio-postgresql

PostgreSQL数据库镜像用于支持Nextcloud应用程序的存储和查询需求。

源镜像 docker.io/nextcloud/aio-postgresql:latest
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nextcloud/aio-postgresql:latest
镜像ID sha256:a11b921fdbe47a86af739eca19a7acb9443db8838519084c9352e9d1a3ee07aa
镜像TAG latest
大小 245.89MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD
启动入口 /start.sh
工作目录
OS/平台 linux/amd64
浏览量 195 次
贡献者 56******1@qq.com
镜像创建 2024-08-01T10:16:54.920124656Z
同步时间 2024-08-28 14:32
更新时间 2025-01-17 19:25
开放端口
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=16 PG_VERSION=16.3 PG_SHA256=331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585 DOCKER_PG_LLVM_DEPS=llvm15-dev clang15 PGDATA=/var/lib/postgresql/data
镜像标签
false: com.centurylinklabs.watchtower.enable

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nextcloud/aio-postgresql:latest
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nextcloud/aio-postgresql:latest  docker.io/nextcloud/aio-postgresql:latest

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nextcloud/aio-postgresql:latest
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nextcloud/aio-postgresql:latest  docker.io/nextcloud/aio-postgresql:latest

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-08-01 18:16:54  0.00B 添加元数据标签
LABEL com.centurylinklabs.watchtower.enable=false
                        
# 2024-08-01 18:16:54  0.00B 指定检查容器健康状态的命令
HEALTHCHECK &{["CMD-SHELL" "/healthcheck.sh"] "0s" "0s" "0s" "0s" '\x00'}
                        
# 2024-08-01 18:16:54  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/start.sh"]
                        
# 2024-08-01 18:16:54  0.00B 指定运行容器时使用的用户
USER postgres
                        
# 2024-08-01 18:16:54  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/mnt/data]
                        
# 2024-08-01 18:16:54  956.18KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex;     apk upgrade --no-cache -a;     apk add --no-cache         bash         openssl         shadow         grep;         deluser postgres;     groupmod -g 9999 ping;     addgroup -g 999 -S postgres;     adduser -u 999 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres;     apk del --no-cache shadow;         chown -R postgres:postgres /var/lib/postgresql;     chown -R postgres:postgres /var/run/postgresql;     chmod -R 777 /var/run/postgresql;     chown -R postgres:postgres "$PGDATA";         mkdir /mnt/data;     chown postgres:postgres /mnt/data;         echo "root:$(openssl rand -base64 12)" | chpasswd;     apk --no-cache del openssl;         rm -f /usr/local/bin/gosu /usr/local/bin/su-exec; # buildkit
                        
# 2024-08-01 18:16:52  475.00B 复制新文件或目录到容器中
COPY --chmod=775 init-user-db.sh /docker-entrypoint-initdb.d/init-user-db.sh # buildkit
                        
# 2024-08-01 18:16:52  178.00B 复制新文件或目录到容器中
COPY --chmod=775 healthcheck.sh /healthcheck.sh # buildkit
                        
# 2024-08-01 18:16:52  7.59KB 复制新文件或目录到容器中
COPY --chmod=775 start.sh /start.sh # buildkit
                        
# 2024-06-04 04:57:56  0.00B 设置默认要执行的命令
CMD ["postgres"]
                        
# 2024-06-04 04:57:56  0.00B 声明容器运行时监听的端口
EXPOSE map[5432/tcp:{}]
                        
# 2024-06-04 04:57:56  0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGINT
                        
# 2024-06-04 04:57:56  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2024-06-04 04:57:56  23.00B 执行命令并创建新的镜像层
RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
                        
# 2024-06-04 04:57:56  14.96KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
                        
# 2024-06-04 04:57:56  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/var/lib/postgresql/data]
                        
# 2024-06-04 04:57:56  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
                        
# 2024-06-04 04:57:56  0.00B 设置环境变量 PGDATA
ENV PGDATA=/var/lib/postgresql/data
                        
# 2024-06-04 04:57:56  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
                        
# 2024-06-04 04:57:56  59.25KB 执行命令并创建新的镜像层
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
                        
# 2024-06-04 04:57:56  234.45MB 执行命令并创建新的镜像层
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 		zstd-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-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 		--with-zstd 	; 	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
                        
# 2024-06-04 04:57:56  0.00B 设置环境变量 DOCKER_PG_LLVM_DEPS
ENV DOCKER_PG_LLVM_DEPS=llvm15-dev 		clang15
                        
# 2024-06-04 04:57:56  0.00B 设置环境变量 PG_SHA256
ENV PG_SHA256=331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585
                        
# 2024-06-04 04:57:56  0.00B 设置环境变量 PG_VERSION
ENV PG_VERSION=16.3
                        
# 2024-06-04 04:57:56  0.00B 设置环境变量 PG_MAJOR
ENV PG_MAJOR=16
                        
# 2024-06-04 04:57:56  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
                        
# 2024-06-04 04:57:56  0.00B 设置环境变量 LANG
ENV LANG=en_US.utf8
                        
# 2024-06-04 04:57:56  4.00B 执行命令并创建新的镜像层
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
                        
# 2024-06-04 04:57:56  2.60MB 执行命令并创建新的镜像层
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
                        
# 2024-06-04 04:57:56  0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.17
                        
# 2024-06-04 04:57:56  3.07KB 执行命令并创建新的镜像层
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
                        
# 2024-06-04 04:57:56  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/sh"]
                        
# 2024-06-04 04:57:56  7.80MB 
/bin/sh -c #(nop) ADD file:99093095d62d0421541d882f9ceeddb2981fe701ec0aa9d2c08480712d5fed21 in / 
                        
                    

镜像信息

{
    "Id": "sha256:a11b921fdbe47a86af739eca19a7acb9443db8838519084c9352e9d1a3ee07aa",
    "RepoTags": [
        "nextcloud/aio-postgresql:latest",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nextcloud/aio-postgresql:latest"
    ],
    "RepoDigests": [
        "nextcloud/aio-postgresql@sha256:f7a0be3c6c3f055374d4730fd2547473a3399e297e9bbaa60a3797a782d1e3b1",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nextcloud/aio-postgresql@sha256:711b2a171110d13f9cd7abc25505acbc694e90637341cdae5da1f2775622005a"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-08-01T10:16:54.920124656Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "postgres",
        "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=16",
            "PG_VERSION=16.3",
            "PG_SHA256=331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585",
            "DOCKER_PG_LLVM_DEPS=llvm15-dev \t\tclang15",
            "PGDATA=/var/lib/postgresql/data"
        ],
        "Cmd": null,
        "Healthcheck": {
            "Test": [
                "CMD-SHELL",
                "/healthcheck.sh"
            ]
        },
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/mnt/data": {},
            "/var/lib/postgresql/data": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "/start.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "com.centurylinklabs.watchtower.enable": "false"
        },
        "StopSignal": "SIGINT"
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 245891100,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/90fa408b9d8c68de43eb8f889bd02e315a4e69ecfdece4de42cf9b02bfd7ecd9/diff:/var/lib/docker/overlay2/79f931c7f970facc5e74e2fa266b7f22f21eb7896cd4a10823b32554d05c4202/diff:/var/lib/docker/overlay2/dbf111e38c4992ee62d50cdc53265794483e6f65d08947dae229282a48908b0e/diff:/var/lib/docker/overlay2/622cc8bee31bbdc93a5b92a15d0aab973e090344d9e76dee85a541e6a170eefc/diff:/var/lib/docker/overlay2/86161fdbfa54737ecf2359ca22e072767abe3938249f70b157999c6295a66a02/diff:/var/lib/docker/overlay2/2efbbf99658c5f6ca1fc6afc5b77b289a8295c94544dcc0ac5792359bf9cddec/diff:/var/lib/docker/overlay2/5ebc21a7362e583323fe509fa99cf307372508d07f74c5197ed928d253cf2d64/diff:/var/lib/docker/overlay2/4db16bedad12668556e5b62e8b02d158079dcd14015526950f11c751e87e7049/diff:/var/lib/docker/overlay2/32761458fbac882f6ab70ce01b7f3fde665aa317bb49191ad83e1e7525195fdf/diff:/var/lib/docker/overlay2/b066881f0d14335ac4cc1d92d3ea605530dd931ddfb8ca8a2df491c462400656/diff:/var/lib/docker/overlay2/bf8297d7eb5a2fc4e49566712230337791d97cc5a523f320ba9bd09200e9cd24/diff:/var/lib/docker/overlay2/e9b5539e17afa17d01b1db72fbf51ba44511e3fc85ae4112f1c1a1592ff071b3/diff:/var/lib/docker/overlay2/c75e30bbb86d7575d2a518ea7b767cb314a0fba02141f6c2fcd9230b527fa2e2/diff:/var/lib/docker/overlay2/b432477cd1cfc4da8de6bb2978a146d43084f40cc2835da168b5343dbae9540a/diff",
            "MergedDir": "/var/lib/docker/overlay2/8b82ddcb667835dd325ddb467971382afdc2c0bf7942d85aa03050188d9299a3/merged",
            "UpperDir": "/var/lib/docker/overlay2/8b82ddcb667835dd325ddb467971382afdc2c0bf7942d85aa03050188d9299a3/diff",
            "WorkDir": "/var/lib/docker/overlay2/8b82ddcb667835dd325ddb467971382afdc2c0bf7942d85aa03050188d9299a3/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:78561cef0761903dd2f7d09856150a6d4fb48967a8f113f3e33d79effbf59a07",
            "sha256:8fdf397cda5ede3704a17c96f0b5e735f42370de14eaf86366aa27aedbc567c8",
            "sha256:e00a49c986ee842b50eb4440accf56c38330f2b33af93aafef5783b6bb0c0e53",
            "sha256:53f8b77d9e39328081aedb3c8ffb14487d3b3b1abd9480c4508c6de65b0e1e5c",
            "sha256:98e6ec3c6a76ce6c743ae4ef3463751ebb164b395c4a783f4987b74823a56086",
            "sha256:bcb20466f87f43d523c22909961d9f1aa9de687cdfa1094b876a8f826a9b7317",
            "sha256:dce4a1bad27b619e714ca45da94883b17216ba0b57fef5935900dfce0be91ccb",
            "sha256:e73f5b2506dd691dd10e38dbe0bc6885c0b1717ea486fc465b28f5975ddb306c",
            "sha256:51142921c39ef295233355267a4bfadd4a5fd05bb043b0d3bd1fc9b61c93c6ea",
            "sha256:def3a9ab0e1c3e2d2021390bf71ae67d5bfa77c24788cd5b84537aebae3506f5",
            "sha256:4ada0f65e9d0215b05d88ba70173a3dc8bbad8b616eb735b2d1b9228e2b00dd9",
            "sha256:fd9a4d12bd03aadb72c9191540cd01ec095ac56d4826458df3e29dad06bb1004",
            "sha256:72b1f04f8a8e7217d25d369d40ae80feba3e5d0ae824f9f92849f428f37b6877",
            "sha256:ff15539ede027122a61cc61bf7753759f3eee3ada4018c37ceb35f6b75625848",
            "sha256:77636f6283092baab2c5168b9c49fd7c13b456e09a82adec66be1aedeae0108c"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-08-28T14:31:44.513396045+08:00"
    }
}

更多版本

docker.io/nextcloud/aio-postgresql:latest

linux/amd64 docker.io245.89MB2024-08-28 14:32
194