
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这段话即可:
请先阅读并遵守:https://xuanyuan.cloud/agents.md
未读文档前不要生成 pull 命令或排错方案。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
This image is deprecated in favor of the full installation explained over at https://develop.sentry.dev/self-hosted/ (last updated July 2019; https://github.com/getsentry/docker-sentry/pull/189).
Maintained by:
https://github.com/getsentry/docker-sentry
Where to get help:
https://forums.docker.com/, https://dockr.ly/slack, or https://stackoverflow.com/search?tab=newest&q=docker
Dockerfile linksNo supported tags
Where to file issues:
https://github.com/getsentry/docker-sentry/issues
Supported architectures: (https://github.com/docker-library/official-images#architectures-other-than-amd64)
No supported architectures
Published image artifact details:
https://github.com/docker-library/repo-info/blob/master/repos/sentry (https://github.com/docker-library/repo-info/commits/master/repos/sentry)
(image metadata, transfer size, etc)
Image updates:
https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Fsentry
https://github.com/docker-library/official-images/blob/master/library/sentry (https://github.com/docker-library/official-images/commits/master/library/sentry)
Source of this description:
https://github.com/docker-library/docs/tree/master/sentry (https://github.com/docker-library/docs/commits/master/sentry)
Sentry is a realtime event logging and aggregation platform. It specializes in monitoring errors and extracting all the information needed to do a proper post-mortem without any of the hassle of the standard user feedback loop.
https://github.com/getsentry/sentry
Start a Redis container
console$ docker run -d --name sentry-redis redis
Start a Postgres container
console$ docker run -d --name sentry-postgres -e POSTGRES_PASSWORD=secret -e POSTGRES_USER=sentry postgres
Generate a new secret key to be shared by all sentry containers. This value will then be used as the SENTRY_SECRET_KEY environment variable.
console$ docker run --rm sentry config generate-secret-key
If this is a new database, you'll need to run upgrade
console$ docker run -it --rm -e SENTRY_SECRET_KEY='<secret-key>' --link sentry-postgres:postgres --link sentry-redis:redis sentry upgrade
Note: the -it is important as the initial upgrade will prompt to create an initial user and will fail without it
Now start up Sentry server
console$ docker run -d --name my-sentry -e SENTRY_SECRET_KEY='<secret-key>' --link sentry-redis:redis --link sentry-postgres:postgres sentry
The default config needs a celery beat and celery workers, start as many workers as you need (each with a unique name)
console$ docker run -d --name sentry-cron -e SENTRY_SECRET_KEY='<secret-key>' --link sentry-postgres:postgres --link sentry-redis:redis sentry run cron $ docker run -d --name sentry-worker-1 -e SENTRY_SECRET_KEY='<secret-key>' --link sentry-postgres:postgres --link sentry-redis:redis sentry run worker
If you'd like to be able to access the instance from the host without the container's IP, standard port mappings can be used. Just add -p 8080:9000 to the docker run arguments and then access either http://localhost:8080 or http://host-ip:8080 in a browser.
If you did not create a superuser during upgrade, use the following to create one:
console$ docker run -it --rm -e SENTRY_SECRET_KEY='<secret-key>' --link sentry-redis:redis --link sentry-postgres:postgres sentry createuser
When you start the sentry image, you can adjust the configuration of the Sentry instance by passing one or more environment variables on the docker run command line. Please note that these environment variables are provided as a jump start, and it's highly recommended to either mount in your own config file or utilize the sentry:onbuild variant.
SENTRY_SECRET_KEYA secret key used for ***graphic functions within Sentry. This key should be unique and consistent across all running instances. You can generate a new secret key doing something like:
console$ docker run --rm sentry config generate-secret-key
SENTRY_POSTGRES_HOST, SENTRY_POSTGRES_PORT, SENTRY_DB_NAME, SENTRY_DB_USER, SENTRY_DB_PASSWORDDatabase credentials for your Postgres server. These values aren't needed if a linked postgres container exists.
SENTRY_REDIS_HOST, SENTRY_REDIS_PORT, SENTRY_REDIS_DBConnection information for your Redis server. These values aren't needed if a linked redis container exists.
SENTRY_MEMCACHED_HOST, SENTRY_MEMCACHED_PORTConnection information for a Memcache server. These values aren't needed if a linked memcached container exists.
SENTRY_FILESTORE_DIRDirectory where uploaded files will be stored. This defaults to /var/lib/sentry/files and is a VOLUME for persistent data.
SENTRY_SERVER_EMAILThe email address used for From: in outbound emails. Default: root@localhost
SENTRY_EMAIL_HOST, SENTRY_EMAIL_PORT, SENTRY_EMAIL_USER, SENTRY_EMAIL_PASSWORD, SENTRY_EMAIL_USE_TLSConnection information for an outbound smtp server. These values aren't needed if a linked smtp container exists.
SENTRY_MAILGUN_API_KEYIf you're using Mailgun for inbound mail, set your API key and configure a route to forward to /api/hooks/mailgun/inbound/.
View https://github.com/getsentry/sentry/blob/master/LICENSE for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in https://github.com/docker-library/repo-info/tree/master/repos/sentry.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 sentry 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: