专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

ubuntu/postgres Docker 镜像 - 轩辕镜像 | Docker 镜像高效稳定拉取服务

热门搜索:openclaw🔥nginx🔥redis🔥mysqlopenjdkcursorweb2apimemgraphzabbixetcdubuntucorednsjdk
postgres
ubuntu/postgres
Ubuntu 官方镜像
PostgreSQL是一款开源的对象关系型数据库,它功能强大、稳定性高,广泛应用于各类企业级应用和数据管理场景,支持复杂查询、事务处理及高级数据类型,其长期版本由Canonical负责维护,为用户提供持续的技术支持与更新服务,确保数据库系统在长期使用中的可靠性与安全性,是全球众多开发者和企业信赖的主流数据库解决方案之一。
42 次收藏下载次数: 0状态:社区镜像维护者:Ubuntu 官方镜像仓库类型:镜像最近更新:12 天前
轩辕镜像,快一点,稳很多。点击查看
版本下载
轩辕镜像,快一点,稳很多。点击查看

postgres | Ubuntu

Current postgres Docker Image from Canonical, based on Ubuntu. Receives security updates and rolls to newer postgres or Ubuntu release. This repository is free to use and exempt from per-user rate limits.

About postgres

Current PostgreSQL software Docker Image from Canonical based on Ubuntu. Receives security updates and rolls to newer PostgreSQL software or Ubuntu release. This repository is free to use and exempted from per-user rate limits.

About PostgreSQL™

PostgreSQL is a powerful, open source object-relational database system. It has more than 20 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness. Read more on the PostgreSQL website.

bash
docker run --detach --name postgresql-container -p 30432:5432 -e TZ=UTC -e POSTGRES_PASSWORD=My:S3cr3t ubuntu/postgres:16-24.04_edge

Tags and Architectures

!LTS Up to 5 years of free security maintenance on LTS channels.

!ESM Up to 10 years of customer security maintenance from Canonical's restricted repositories.

Channel TagsSupported untilCurrentlyArchitectures
14-22.04_beta14-22.04_edge, edge, latest-postgres 14 on Ubuntu 22.04 LTSs390x, amd64, ppc64le, arm64
13-21.10_beta13-21.10_edge-postgres 13 on Ubuntu 21.10 amd64, s390x, arm64, ppc64le
13-21.04_beta13-21.04_edge-postgres 13 on Ubuntu 21.04 s390x, ppc64le, amd64, arm64
12-20.04_beta12-20.04_edge-postgres 12 on Ubuntu 20.04 LTSs390x, arm64, ppc64le, amd64
16-24.04_edge16-24.04_edge-postgres 16 on Ubuntu 24.04 LTSarm64, amd64
track_risk

Channel Tags shows the most stable channel for that track ordered stable, candidate, beta, edge. More risky channels are always implicitly available. So if beta is listed, you can also pull edge. If candidate is listed, you can pull beta and edge. When stable is listed, all four are available. Images are guaranteed to progress through the sequence edge, beta, candidate before stable.

Commercial use and Extended Security Maintenance channels

If your usage includes commercial redistribution, or requires ESM or unavailable channels/versions, please get in touch with the Canonical team (or using ***).

Usage

Launch this image locally:

sh
docker run -d --name postgres-container -e TZ=UTC -e TZ=UTC -e POSTGRES_PASSWORD=My:S3cr3t -p 30432:5432 ubuntu/postgres:14-22.04_beta

Access your PostgreSQL server at localhost:55432.

Parameters
ParameterDescription
-e TZ=UTCTimezone.
-e POSTGRES_PASSWORD=my_secret_passwordSet the password for the superuser which is postgres by default. Bear in mind that to connect to the database in the same host the password is not needed but to access it via an external host (for instance another container) the password is needed. This option is mandatory and must not be empty.
-e POSTGRES_USER=johnCreate a new user with superuser privileges. This is used in conjunction with POSTGRES_PASSWORD.
-e POSTGRES_DB=db_testSet the name of the default database.
-e POSTGRES_INITDB_ARGS="--data-checksums"Pass arguments to the postgres initdb call.
-e POSTGRES_INITDB_WALDIR=/path/to/locationSet the location of the Postgres transaction log. By default it is stored in a subdirectory of the main Postgres data folder (PGDATA).
-e POSTGRES_HOST_AUTH_METHOD=trustSet the auth-method for host connections for all databases, all users, and all addresses. The following will be added to the pg_hba.conf if this option is passed 'host all all all $POSTGRES_HOST_AUTH_METHOD'.
-e PGDATA=/path/to/locationSet the location of the database files. The default is '/var/lib/postgresql/data'.
-p 30432:5432Expose Postgres on localhost:30432.
-v /path/to/postgresql.conf:/etc/postgresql/postgresql.confLocal configuration file 'postgresql.conf'.
-v /path/to/persisted/data:/var/lib/postgresql/dataPersist data instead of initializing a new database every time you launch a new container.
Testing/Debugging

To debug the container:

sh
docker logs -f postgres-container

To get an interactive shell:

sh
docker exec -it postgres-container /bin/bash
Testing / Debugging

To debug the container:

bash
docker logs -f postgresql-container
docker exec -it postgresql-container pebble logs

To get an interactive shell:

bash
docker exec -it postgresql-container /bin/bash

Bugs and feature requests

If you find a bug in our image or want to request a specific feature, please file a bug here:

[***]

Please title the bug "postgres: <issue summary>". Make sure to include the digest of the image you are using, from:

sh
docker images --no-trunc --quiet ubuntu/postgres:<tag>

Deprecated channels & tags

These channels (tags) are not updated anymore. Please upgrade to newer channels, or reach out if you can't upgrade.

TrackVersionEOLUpgrade Path
track
查看更多 postgres 相关镜像 →
postgres logo
postgres
Docker 官方镜像
PostgreSQL作为一款功能强大的对象关系型数据库系统,凭借其先进的架构设计与完善的技术机制,不仅能高效融合关系型数据的结构化管理与对象型数据的灵活扩展,更通过严格的ACID事务支持、多版本并发控制及全面的数据校验机制,为各类应用场景提供卓越的系统可靠性与极致的数据完整性保障,是全球广泛应用的开源数据库优选方案。
1.5万 次收藏10亿+ 次下载
20 天前更新
cimg/postgres logo
cimg/postgres
cimg
CircleCI便捷镜像,集成PostgreSQL数据库,用于CI/CD流程中快速部署和运行PostgreSQL相关的测试及开发任务,简化配置。
9 次收藏5亿+ 次下载
1 个月前更新
kasmweb/postgres logo
kasmweb/postgres
kasmweb
Kasm Technologies维护的Postgres镜像,包含pg_audit及其他修改。
6 次收藏10万+ 次下载
18 天前更新
elestio/postgres logo
elestio/postgres
elestio
Elestio验证和打包的PostgreSQL镜像,提供高级对象关系型数据库管理系统,支持SQL标准扩展子集(事务、外键、子查询等),确保与原始源同步更新、及时获取最新修复和功能,并经过质量控制检查,适合可靠的数据库部署需求。
2 次收藏10万+ 次下载
20 天前更新
chainguard/postgres logo
chainguard/postgres
chainguard
使用Chainguard的低至零CVE容器镜像构建、发布和运行安全软件。
1 次收藏5万+ 次下载
18 天前更新
artifacthub/postgres logo
artifacthub/postgres
artifacthub
暂无描述
50万+ 次下载
4 个月前更新

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

Docker 配置

登录仓库拉取

通过 Docker 登录认证访问私有仓库

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

系统配置

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

MacOS OrbStack

MacOS OrbStack 容器配置

Docker Compose

Docker Compose 项目配置

NAS 设备

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

极空间

极空间 NAS 系统配置服务

网络设备

爱快路由

爱快 iKuai 路由系统配置

宝塔面板

在宝塔面板一键配置镜像

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

使用与功能问题

docker search 报错:专属域名下仅支持 Docker Hub 查询

docker search 报错问题

网页搜不到镜像:Docker Hub 有但轩辕镜像搜索无结果

镜像搜索不到

离线传输镜像:无法直连时用 docker save/load 迁移

离线传输镜像

Docker 插件安装错误:application/vnd.docker.plugin.v1+json

Docker 插件安装错误

WSL 下 Docker 拉取慢:网络与挂载目录影响及优化

WSL 拉取镜像慢

轩辕镜像是否安全?镜像完整性校验(digest)说明

镜像安全性

如何用轩辕镜像拉取镜像?登录方式与专属域名配置

如何拉取镜像

错误码与失败问题

manifest unknown 错误:镜像不存在或标签错误

manifest unknown 错误

TLS/SSL 证书验证失败:Docker pull 时 HTTPS 证书错误

TLS 证书验证失败

DNS 解析超时:无法解析镜像仓库地址或连接超时

DNS 解析超时

410 Gone 错误:Docker 版本过低导致协议不兼容

410 错误:版本过低

402 Payment Required 错误:流量耗尽错误提示

402 错误:流量耗尽

401 UNAUTHORIZED 错误:身份认证失败或登录信息错误

身份认证失败错误

429 Too Many Requests 错误:请求频率超出专业版限制

429 限流错误

Docker login 凭证保存错误:Cannot autolaunch D-Bus(不影响登录)

凭证保存错误

账号 / 计费 / 权限

免费版与专业版区别:功能、限额与使用场景对比

免费版与专业版区别

支持的镜像仓库:Docker Hub、GCR、GHCR、K8s 等列表

轩辕镜像支持的镜像仓库

拉取失败是否扣流量?计费规则说明

拉取失败流量计费

KYSEC 权限不够:麒麟 V10/统信 UOS 下脚本执行被拦截

KYSEC 权限错误

如何申请开具发票?(增值税普票/专票)

开具发票

如何修改网站与仓库登录密码?

修改网站和仓库密码

配置与原理类

registry-mirrors 未生效:仍访问官方仓库或报错的原因

registry-mirrors 未生效

如何去掉镜像名称中的轩辕域名前缀?(docker tag)

去掉域名前缀

如何拉取指定架构镜像?(ARM64/AMD64 等多架构)

拉取指定架构镜像

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
Ubuntu 官方镜像
...
ubuntu/postgres
博客公告Docker 镜像公告与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
镜像拉取问题咨询请 提交工单,官方技术交流群:1072982923。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
镜像拉取问题咨询请提交工单,官方技术交流群:。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.