
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://img.shields.io/docker/pulls/gpongelli/pgadmin4-arm.svg?style=flat-square&logo=docker](https://hub.docker.com/r/gpongelli/pgadmin4-arm/)
Last updated by bot: 2023-01-19
This is a simple Raspberry Docker image for running pgAdmin 4 in a container. The default configuration is not intended for production use (it runs in "desktop mode", so authentication is disabled).
This image uses an unprivileged user, and uses port 5050 instead of 80.
To access the web-interface on port 80 instead of 5050, you can map the
port using -p 80:5050.
Sometimes happens that Docker on Mack hangs at startup, an useful list of command to fix is:
bashrm -rf ~/Library/Containers/com.docker.* cd /usr/local/bin chmod 0755 dock*
Credits for the starting structure of this project goes to https://github.com/FlorianASchroeder/pgadmin4-docker.
Starting from that project, I've added the github actions to build docker image for Raspberry's armv7 architecture.
To use a specific com***ation of pgAdmin 4 and python see the following table of available image tags.
| Tag | pgAdmin version | Python version | Distro | Architecture |
|---|---|---|---|---|
7.1-py3.11-armv8 | 7.1 | 3.11.3 | alpine3.16 | armv8 |
7.0-py3.11-armv8 | 7.0 | 3.11.3 | alpine3.16 | armv8 |
6.21-py3.11-armv7 | 6.21 | 3.11.3 | alpine3.16 | armv7 |
6.21-py3.11-armv8 | 6.21 | 3.11.3 | alpine3.16 | armv8 |
6.20-py3.11-armv7 | 6.20 | 3.11.3 | alpine3.16 | armv7 |
6.20-py3.11-armv8 | 6.20 | 3.11.3 | alpine3.16 | armv8 |
6.19-py3.11-armv7 | 6.19 | 3.11.3 | alpine3.16 | armv7 |
6.19-py3.11-armv8 | 6.19 | 3.11.3 | alpine3.16 | armv8 |
Lovely! These tags are kept updated automatically (when new minor or patch version are released) by build_versions.py which is run twice a day on CircleCI.
bashversion: '2' services: pg_admin: container_name: pgAdmin image: gpongelli/pgadmin4-docker-armv7:6.19-py3.11 restart: unless-stopped ports: - 5050:5050 volumes: - ./volumes/pg_admin/servers.json:/pgadmin/servers.json networks: ... environment: ...
To see this image in action, run the following command;
bash$ docker run --rm -p 5050:5050 docker pull gpongelli/pgadmin4-docker-armv7:6.19-py3.11
This starts a one-off container in non-detached mode, and container logs are
printed in your terminal. After the container has finished starting, visit
http://[your-docker-host]:5050 in your browser to try pgAdmin 4.
To exit and remove the container, press CTRL+C in your terminal.
This example uses a custom network, and runs a PostgreSQL container.
bash# create a custom network for easier connecting $ docker network create pg # start a postgres container $ docker run -d -e POSTGRES_PASSWORD=password --network=pg --name postgres postgres:9-alpine # start pgAdmin container $ docker run -d -p 5050:5050 --name pgadmin --network=pg gpongelli/pgadmin4-docker-armv7:6.19-py3.11
Now visit http://[your-docker-host]:5050 in your browser. You can add the
postgres database (hostname is postgres, password is password) to test
if everything is working.
!https://raw.githubusercontent.com/thaJeztah/pgadmin4-docker/master/pgadmin-screenshot.png
Persistent data is stored in a volume, located at /pgadmin/. This allows
you to upgrade the container to a new version without losing configuration.
The following directories can be found inside the volume;
/pgadmin/config/pgadmin4.db - SQLite configuration database/pgadmin/storage/ - other storageYou can override the storage location using the PG_ADMIN_DATA_DIR
environment variable
pgAdmin runs as an unprivileged user (pgadmin) with uid:gid 1000:50.
The uid:gid is selected for compatibility with Docker Toolbox, and allows
you to ***d-mount a local directory inside the container for persistent
storage
For example, to ***d-mount the /Users/me/pgadmin directory as storage directory;
bash$ docker run -d -p 5050:5050 -v /Users/me/pgadmin:/pgadmin gpongelli/pgadmin4-docker-armv7:6.19-py3.11
This image can be run with a read-only filesystem. To do so, specify the
--read-only flag when starting the container.
bash$ docker run -d -p 5050:5050 --name pgadmin --read-only gpongelli/pgadmin4-docker-armv7:6.19-py3.11
This image can be configured at runtime, by setting environment variables;
PG_ADMIN_DATA_DIR directory to use for storing data (defaults to /pgadmin/)PG_ADMIN_PORT port to listen on (defaults to 5050)PG_ADMIN_SESSION_DIR directory to use for storing server-side sessions (defaults to /dev/shm/pgAdmin4_session)DEBUG enable debug mode (detaults to False)More information on pgAdmin 4 development can be found here;
Issues and feature requests can be reported on GitHub; https://github.com/gpongelli/pgadmin4-docker-armv7
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务