轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥7起我的订单
文档
工具
提交工单页面收录
pgadmin4

daverichmond/pgadmin4

daverichmond

下载次数: 0状态:社区镜像维护者:daverichmond仓库类型:镜像最近更新:5 年前
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这句话即可:

请先完整阅读并严格遵守以下文档中的全部规则与要求:

https://xuanyuan.cloud/agents.md

在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

镜像简介
下载命令
镜像标签列表与下载命令
轩辕镜像,快一点,稳很多。
点击查看

pgAdmin 4

pgAdmin 4 is a rewrite of the popular pgAdmin3 management tool for the PostgreSQL ([***] database.

In the following documentation and examples, "$PGADMIN4_SRC/" is used to denote the top-level directory of a copy of the pgAdmin source tree, either from a tarball or a git checkout.

Architecture

pgAdmin 4 is written as a web application in Python, using jQuery and Bootstrap for the client side processing and UI. On the server side, Flask is being utilised.

Although developed using web technologies, pgAdmin 4 can be deployed either on a web server using a browser, or standalone on a workstation. The runtime/ subdirectory contains a QT based runtime application intended to allow this - it is essentially a Python application server that runs in the system tray and allows the user to connect to the application using their web browser.

Building the Runtime

To build the runtime, the following packages must be installed:

  • QT 4.6 or above (Use the VC++ build on Windows, not MinGW).
  • Python 2.7 or 3.4+

Assuming both qmake and python-config are in the path:

$ cd $PGADMIN4_SRC/runtime $ qmake Project MESSAGE: Building for QT5+... Project MESSAGE: Building for Linux/Mac... Project MESSAGE: Using /usr/***/python-config Project MESSAGE: Python2 detected. $ make ...

To build the runtime in debug mode, use the option below with qmake $ qmake CONFIG+=debug

To build the runtime in release mode, use the option below with qmake $ qmake CONFIG+=release

By default, the runtime application will be built in release mode.

On Linux, an executable called 'pgAdmin4' will be built, and on Mac OS X, an app bundle called pgAdmin4.app will be created.

To build the runtime on a Windows system, export PYTHON_HOME and PYTHON_VERSION variables in the System environment. Specify the PYTHON_VERSION with the major and minor number. Do not specify micro level version.

For example, given a Python version of A.B.C; A - Major number, B - Minor number, C - Micro level (Bug fix releases).

If Python version is 2.7.12 than specify PYTHON_VERSION=27

e.g. PYTHON_HOME=C:\Python27
PYTHON_VERSION=27

You can also use Qt Creator to build, develop and debug the runtime. Simply open the $PGADMIN4_SRC/runtime/pgAdmin4.pro project file in Qt Creator and configure the project with a supported version of Qt when pro***ed.

Create Database Migrations

In order to make changes to the SQLite DB, navigate to the 'web' directory:

(pgadmin4) $ cd $PGADMIN4_SRC/web

Create a migration file with the following command:

(pgadmin4) $ FLASK_APP=pgAdmin4.py flask db revision

This will create a file in: $PGADMIN4_SRC/web/migrations/versions/ . Add any changes to the 'upgrade' function. Increment the SCHEMA_VERSION in $PGADMIN4_SRC/web/pgadmin/model/init.py file.

There is no need to increment the SETTINGS_SCHEMA_VERSION.

Configuring the Python Environment

In order to run the Python code, a suitable runtime environment is required. Python versions - Python 2.7 or 3.4+ are currently supported. It is recommended that a Python Virtual Environment is setup for this purpose, rather than using the system Python environment. On Linux and Mac systems, the process is fairly simple - adapt as required for your distribution:

  1. Install the virtualenv packages into the system Python environment

    $ sudo pip install virtualenv virtualenvwrapper

  2. Source the virtualenv wrapper tools script. You may want to add this command to your ~/.bash_profile file for future convenience:

    $ source /usr/local/***/virtualenvwrapper.sh

  3. Create a virtual environment:

    $ mkvirtualenv pgadmin4

    To make use of the virtual environment in the future, use the following command to re-activate it:

    $ workon pgadmin4

  4. Ensure that a PostgreSQL installation's ***/ directory is in the path (so pg_config can be found for building psycopg2), and install the required packages:

    (pgadmin4) $ PATH=$PATH:/usr/local/pgsql/*** pip install -r $PGADMIN4_SRC/requirements.txt

    If you are planning to run the regression tests, you also need to install additional requirements from web/regression/requirements.txt:

    (pgadmin4) $ pip install -r $PGADMIN4_SRC/web/regression/requirements.txt

  5. Create a local configuration file for pgAdmin. Edit $PGADMIN4_SRC/web/config_local.py and add any desired configuration options (use the config.py file as a reference - any settings duplicated in config_local.py will override those in config.py). A typical development configuration may look like:

    from config import *

    Debug mode

    DEBUG = True

    App mode

    SERVER_MODE = True

    Enable the test module

    MODULE_BLACKLIST.remove('test')

    Log

    CONSOLE_LOG_LEVEL = DEBUG FILE_LOG_LEVEL = DEBUG

    DEFAULT_SERVER = '127.0.0.1'

    UPGRADE_CHECK_ENABLED = True

    Use a different config DB for each server mode.

    if SERVER_MODE == False: SQLITE_PATH = os.path.join( DATA_DIR, 'pgadmin4-desktop.db' ) else: SQLITE_PATH = os.path.join( DATA_DIR, 'pgadmin4-server.db' )

    This configuration allows easy switching between server and desktop modes for testing.

  6. The initial setup of the configuration database is interactive in server mode, and non-interactive in desktop mode. You can run it either by running:

    (pgadmin4) $ python $PGADMIN4_SRC/web/setup.py

    or by starting pgAdmin 4:

    (pgadmin4) $ python $PGADMIN4_SRC/web/pgAdmin4.py

    Whilst it is possible to automatically run setup in desktop mode by running the runtime, that will not work in server mode as the runtime doesn't allow command line interaction with the setup program.

At this point you will be able to run pgAdmin 4 from the command line in either server or desktop mode, and access it from a web browser using the URL shown in the terminal once pgAdmin has started up.

Setup of an environment on Windows is somewhat more complicated unfortunately, largely due to the lack of a native compiler toolset. Thankfully, Microsoft supply a free compiler specifically for Python 2.7 users. Download and install it from:

[***]

A blog detailing the setup of Virtual Environments on Windows can be found here:

[***]

Once a virtual environment has been created and enabled, setup can continue from step 4 above.

Building the Web Assets

pgAdmin is dependent on a number of third party Javascript libraries. These, along with it's own Javascript code, SCSS/CSS code and images must be compiled into a "bundle" which is transferred to the browser for execution and rendering. This is far more efficient than simply requesting each asset as it's needed by the client.

To create the bundle, you will need the 'yarn' package management tool to be installed. Then, you can run the following commands on a *nix system to download the required packages and build the bundle:

(pgadmin4) $ cd $PGADMIN4_SRC
(pgadmin4) $ make install-node
(pgadmin4) $ make bundle

On Windows systems (where "make" is not available, the following commands can be used:

C:\> cd $PGADMIN4_SRC\web
C:\$PGADMIN4_SRC\web> yarn install
C:\$PGADMIN4_SRC\web> yarn run bundle

Configuring the Runtime

The pgAdmin 4 Runtime maintains it's own Python Path to avoid conflicts with packages or other issues in the system Python installation. It will also search a number of known locations for the pgAdmin4.py file needed to run pgAdmin (including relative locations in a source code tree), however you can specify an alternate path if needed.

If either a working environment or pgAdmin4.py cannot be found at startup, the runtime will pro*** for the locations. Alternatively, you can click the try icon and select the Configuration option to open the configuration dialogue.

On a Linux/Mac system, the Python Path will typically consist of a single path to the virtual environment's site-packages directory, e.g.

/Users/<USERNAME>/.virtualenvs/pgadmin4/lib/python2.7/site-packages

On Windows, multiple paths are likely to be required, e.g.

C:\Users\dpage\.virtualenvs\pgadmin4\Lib\site-packages;C:\Users\dpage\.virtualenvs\pgadmin4\Lib;C:\Users\dpage\.virtualenvs\pgadmin4\Lib\lib-tk;C:\Users\dpage\.virtualenvs\pgadmin4\DLLs

If you wish to specify a specific copy of the Python code to run, you can set the Application Path to a directory containing pgAdmin4.py, e.g.

/Users/<USERNAME>/git/pgadmin4-test/web/

Building the documentation

In order to build the docs, an additional Python package is required in the virtual environment. This can be installed with the pip package manager:

$ workon pgadmin4
(pgadmin4) $ pip install Sphinx

The docs can then be built using the Makefile in $PGADMIN4_SRC, e.g.

(pgadmin4) $ make docs

The output can be found in $PGADMIN4_SRC/docs/en_US/_build/html/index.html

Building packages

Most packages can be built using the Makefile in $PGADMIN4_SRC, provided all the setup and configuration above has been completed.

To build a source tarball:

(pgadmin4) $ make src

To build a PIP Wheel, activate either a Python 2 or Python 3 virtual environment as desired, configured with all the required packages, and then run:

(pgadmin4) $ make pip

On a Mac, build an application bundle in a disk image (DMG file) with:

(pgadmin4) $ make appbundle

Configure the framework.conf to match the QT and Python versions the app is being built with:

$ cp $PGADMIN4_SRC/pkg/mac/framework.conf.in $PGADMIN4_SRC/pkg/mac/framework.conf
$ vi $PGADMIN4_SRC/pkg/mac/framework.conf

If you have an Apple code signing certificate, both the app bundle and disk image can be automatically signed by configuring signing:

$ cp $PGADMIN4_SRC/pkg/mac/codesign.conf.in $PGADMIN4_SRC/pkg/mac/codesign.conf
$ vi $PGADMIN4_SRC/pkg/mac/codesign.conf

Edit the file as appropriate, ensuring the various version numbers are correct and that the appropriate developer ID is specified.

On Windows, the InnoSetup tool is required to create an installer. Download the Unicode version from:

[***]

A number of environment variables may need to be set to enable the build script to function. The defaults will usually work on a typical 64 bit system with Qt 5.5.1, Python 2.7 and Visual Studio 2013. The examples below are for a similar 32 bit system:

INNOTOOL=C:\Program Files\Inno Setup 5 PGDIR=C:\Program Files\PostgreSQL\10 PYTHON_DLL=C:\Windows\System32\Python27.dll PYTHON_HOME=C:\Python27 PYTHON_VERSION=27 QTDIR=C:\Qt\5.9\msvc2013 VCDIR=C:\Program Files\Microsoft Visual Studio 12.0\VC

To build the installer:

C:\$PGADMIN4_SRC> make x86

If you have a code signing certificate, this will automatically be used if found in the Windows Certificate Store to sign the installer.

Support

See https://www.pgadmin.org/support/ for support options.

Project info

The source code repository can be found here:

http://git.postgresql.org/gitweb/?p=pgadmin4.git;a=summary

A Redmine project for pgAdmin 4 can be found at the address below. A PostgreSQL community account is required to access this site. Please note that at present only project developers can log bug and feature requests:

https://redmine.postgresql.org/projects/pgadmin4

If you wish to discuss pgAdmin 4, or contribute to the project, please use the pgAdmin Hackers mailing list:


-- Dave Page pgAdmin Project Lead

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 pgadmin4 镜像标签

docker pull docker.xuanyuan.run/daverichmond/pgadmin4:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull daverichmond/pgadmin4:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

一键安装

一键安装 Docker

Linux Docker 一键安装

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Apple Container

macOS 原生容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

Unraid

Unraid NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

iKuai 镜像加速

宝塔面板

一键配置镜像源

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

镜像拉取常见问题

功能

版本功能对比

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 专业版 · 企业版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

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

用户头像

oldzhang

运维工程师

Linux服务器

5

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

轩辕镜像
镜像详情
...
daverichmond/pgadmin4
定价查看流量套餐与价格
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥7/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥7/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
用户协议·隐私政策·增值电信业务经营许可证:浙B2-20261007·©2024-2026 源码跳动©2024-2026 杭州源码跳动科技有限公司·商务合作:点击复制邮箱

更多 pgadmin4 镜像推荐

dpage/pgadmin4 logo

dpage/pgadmin4

dpage
pgAdmin 4是一款基于Web的PostgreSQL数据库管理工具,它支持数据库设计、SQL查询执行、数据导入导出、用户权限配置及性能监控等核心功能,具有跨平台访问、无需本地客户端安装、通过浏览器即可便捷操作的特点,能够满足PostgreSQL用户从数据库开发、日常管理到性能优化的多方面需求,是PostgreSQL生态中广泛使用的主流管理工具。
1.5千 次收藏1亿+ 次下载
9 天前更新
russell/pgadmin4 logo

russell/pgadmin4

russell
pgadmin4 container
1万+ 次下载
9 年前更新
fenglc/pgadmin4 logo

fenglc/pgadmin4

fenglc
pgAdmin是PostgreSQL数据库的开源管理工具,提供数据库对象管理、SQL查询执行、服务器监控等功能,帮助用户高效运维PostgreSQL实例。
47 次收藏100万+ 次下载
8 年前更新
thajeztah/pgadmin4 logo

thajeztah/pgadmin4

thajeztah
这是一个用于在容器中运行pgAdmin4的简单Docker镜像,默认配置无认证(不适合生产环境),使用非特权用户,监听5050端口,支持自定义网络、持久化存储等功能。
25 次收藏100万+ 次下载
7 年前更新
p1st/pgadmin4 logo

p1st/pgadmin4

p1st
基于dpage/pgadmin4的镜像,增加了容器健康检查功能,用于PostgreSQL数据库的图形化管理。
1万+ 次下载
9 天前更新
chinaboeller/pgadmin4 logo

chinaboeller/pgadmin4

chinaboeller
pgAdmin 4的简易Docker镜像,基础配置仅适用于开发环境,以非特权用户运行,默认使用5050端口,支持持久化存储和运行时配置。
3 次收藏50万+ 次下载
9 天前更新

查看更多 pgadmin4 相关镜像