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

percona/percona-server-mongodb

percona

Percona Server for MongoDB Docker镜像是用于运行兼容MongoDB的增强版数据库服务器,提供高性能、企业级特性及可靠性的容器化解决方案。

44 次收藏下载次数: 0状态:社区镜像维护者:percona仓库类型:镜像最近更新:27 天前
让 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

DockerHub 官方简介
轩辕镜像中文简介
下载命令
镜像标签列表与下载命令
轩辕镜像,加速的不只是镜像。
点击查看

!logo

What is Percona Server for MongoDB?

"Percona Server for MongoDB is a a source-available, fully compatible drop-in replacement for MongoDB Community Edition. It includes enterprise security, backup and developer-friendly features otherwise available only in the MongoDB EE.

Key features include:

  • Encrypted WiredTiger Storage Engine.
  • External Authentication and Authorization - enables authentication through OpenLDAP/AD or Kerberos.
  • Audit logging, log redaction and query database interactions of users or applications.
  • Integration with Percona ToolKit and Percona Monitoring and Management - provides query performance analytics and troubleshooting tools.
  • Compatible with Percona Operator for MongoDB - easily deploy and manage complex MongoDB topologies on Kubernetes."

For more information and related downloads for Percona Server and other Percona products, please visit [***]

Product Documentation

  • Version 4.0
  • Version 4.2
  • Version 4.4
  • Version 5.0
  • Version 6.0

Percona Server for MongoDB Docker Images

Percona Server for MongoDB Docker images, created and maintained by the Percona team.

Images are updated when new releases are published.

How to Use the Images

Start a Percona Server for MongoDB Instance

Start a Percona Server for MongoDB container as follows:

docker run --name container-name  -d percona/percona-server-mongodb:tag

Where container-name is the name you want to assign to your container and tag is the tag specifying the version you want. See the list above for relevant tags, or look at the https://hub.docker.com/r/percona/percona-server-mongodb/tags/.

Accessing Container Shell

Use the following command to get the access to the bash shell and run commands inside the Docker container:

docker exec -it container-name bash

where container-name is the name of your database container.

Connect to Percona Server for MongoDB from an Application running locally

To access Percona Server for MongoDB from an application that is running locally, you need to expose the port using the -p option. The following example shows exposing the standard MongoDB port (27017)

docker run --name container-name  -p 27017:27017 -d percona/percona-server-mongodb:tag 

where container-name is the name of your database container.

Using this method, you will be able to connect to your MongoDB instance on mongodb://localhost:27017.

Connect to Percona Server from an Application in Another Docker Container

This image exposes the standard MongoDB port (27017), so container linking makes the instance available to other containers. Start other containers like this in order to link it to the Percona Server for MongoDB container:

docker run --name app-container-name --link container-name -d app-that-uses-mongodb

Connect to Percona Server for MongoDB from the MongoDB Command Line Client

The following command starts another container instance and runs the mongo/ mongosh command line client against your original container, allowing you to execute commands against your database:

docker run -it --link psmdb --rm percona/percona-server-mongodb:tag mongo mongodb://MONGODB_SERVER:PORT/DB_NAME

For Percona Server for MongoDB 6.0+ and onwards, the mongosh command line client is used. To connect to it, run the command as follows

docker run -it --link psmdb --rm percona/percona-server-mongodb:6.0 mongosh mongodb://MONGODB_SERVER:PORT/DB_NAME

Set MONGODB_SERVER with the IP address of the psmdb container, PORT - with the port of your MongoDB Server (default value is 27017), and DB_NAME with the name of the database you want to connect to.

You can get the IP address by running this command:

docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' psmdb

Environment Variables

When you start the percona/percona-server-mongodb image, you can adjust the initialization of the MongoDB instance by passing one or more environment variables on the docker run command line. Note that none of the variables below will have any effect if you start the container with a data directory that already contains a database: any pre-existing database will always be left untouched on container startup.

MONGO_INITDB_ROOT_USERNAME, MONGO_INITDB_ROOT_PASSWORD

Using these variables in conjunction allows you to create a new user and set that user's password. This user is created in the admin authentication database and given the role of root.

The following is an example of using these two variables to create a MongoDB instance and then using the mongo CLI to connect against the admin authentication database.

$ docker run -d --name container-name \
       -e MONGO_INITDB_ROOT_USERNAME=mongoadmin \
       -e MONGO_INITDB_ROOT_PASSWORD=secret \
       percona/percona-server-mongodb:tag

$ docker exec -it container-name \
       mongo -u mongoadmin \
                    -p secret \
                    --authenticationDatabase admin \
                    some-db
> db.getName();
   some-db

Both variables are required for a user to be created. If both are present, then MongoDB will start with authentication enabled (mongod --auth). To read more about authentication in MongoDB, refer to this upstream documentation:

  • mongod --auth
  • Security > Authentication
  • Security > Role-Based Access Control
  • Security > Role-Based Access Control > Built-In Roles
  • Security > Enable Auth (tutorial)

Docker Secrets

As an alternative to passing sensitive information via environment variables, _you can specify the variables and their values in an environment file and pass this file during the container start. For example:

 docker run --name container-name --env-file path/to/mongo-env -d percona/percona-server-mongodb:tag

where container-name is the name of your database container and path/to/mongo-env is the path to the environment file on your local filesystem.

Notes, Tips, Gotchas

Where to Store Data

There are many two ways to store data used by applications that run in Docker containers. We maintain our usual stance and encourage users to investigate the options and use the method that best suits their use case. Here are some of the options available:

  • Let Docker manage the storage of your database data by writing the database files to disk on the host system using its own internal volume management. The current solutions, devicemapper, aufs and overlayfs have negative performance records.
  • Create a data directory on the host system (outside the container on high performance storage) and mount this to a directory visible from inside the container. This places the database files in a known location on the host system, and makes it easy for tools and applications on the host system to access the files. The user needs to make sure that the directory exists, and that permissions and other security mechanisms on the host system are set up correctly.

The Docker documentation is a good starting point for understanding the different storage options and variations, and there are multiple blog and forum postings that discuss and give advice in this area. We will simply show the basic procedure here for the latter option above:

  1. Create a data directory on a suitable volume on your host system, e.g. /local/datadir.
  2. Start your container like this:
    docker run --name container-name -v /local/datadir:/data/db -d percona/percona-server-mongodb:tag

The -v /local/datadir:/data/db part of the command mounts the /local/datadir directory from the underlying host system as /data/db inside the container, where MongoDB by default will write its data files.

Viewing Percona Server for MongoDB logs

The Percona Server for MongoDB Server log is available through Docker's container log:

$ docker logs container-name

where container-name is the name of your database container.

Passing options to the server

You can pass arbitrary command line options to the server by appending them to the run command:

docker run --name my-container-name -d percona/percona-server-mongodb --option1=value --option2=value

User Feedback

We welcome your feedback!

镜像拉取方式

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

轩辕镜像加速拉取命令点我查看更多 percona-server-mongodb 镜像标签

docker pull docker.xuanyuan.run/percona/percona-server-mongodb:<标签>

使用方法:

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

DockerHub 原生拉取命令

docker pull percona/percona-server-mongodb:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 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 镜像加速

宝塔面板

一键配置镜像源

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

一键安装

一键安装 Docker

Linux Docker 一键安装

需要其他帮助?请查看我们的 常见问题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访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
percona/percona-server-mongodb
教程轩辕镜像功能与使用教程
定价查看流量套餐与价格
热门查看热门 Docker 镜像推荐
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥7/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥7/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
商务合作:点击复制邮箱
用户协议·隐私政策·©2024-2026 源码跳动
用户协议·隐私政策©2024-2026 杭州源码跳动科技有限公司商务合作:点击复制邮箱

更多 percona-server-mongodb 镜像推荐

perconalab/percona-server-mongodb logo

perconalab/percona-server-mongodb

perconalab
暂无描述
1 次收藏5万+ 次下载
3 天前更新
apecloud/percona-server-mongodb logo

apecloud/percona-server-mongodb

apecloud
暂无描述
5万+ 次下载
17 天前更新
percona/percona-server logo

percona/percona-server

percona
Percona官方提供的Percona Server Docker镜像,作为MySQL的增强型替代品,支持TokuDB存储引擎,可提升查询性能和一致性,适用于需要高效数据库服务的容器化部署场景。
85 次收藏1000万+ 次下载
11 天前更新
percona/percona-server-mongodb-operator logo

percona/percona-server-mongodb-operator

percona
PSMDB Operator的mongod镜像
4 次收藏1000万+ 次下载
3 个月前更新
percona/percona-xtradb-cluster-operator logo

percona/percona-xtradb-cluster-operator

percona
用于在Kubernetes环境中管理Percona XtraDB Cluster的部署、扩展与高可用的Operator,提供自动化运维能力,确保MySQL兼容集群的稳定运行。
17 次收藏10亿+ 次下载
16 天前更新
percona/percona-backup-mongodb logo

percona/percona-backup-mongodb

percona
Percona Backup for MongoDB是开源、分布式的低影响MongoDB集群备份解决方案,支持逻辑/物理备份、增量备份、时间点恢复及分片,兼容MongoDB 4.4+,确保备份时性能无显著下降。
4 次收藏500万+ 次下载
4 天前更新

查看更多 percona-server-mongodb 相关镜像

更多相关 Docker 镜像与资源

以下是 percona/percona-server-mongodb 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:

  • library/mongo Docker 镜像说明
  • amd64/mongo Docker 镜像说明(MongoDB 数据库,AMD64 架构版本)
  • arm64v8/mongo Docker 镜像说明(arm64v8 架构 MongoDB,适合 ARM64 文档数据库部署)
  • mongodb/mongodb-community-server Docker 镜像说明(MongoDB 社区版,NoSQL 文档数据库,适合灵活数据模型)
  • mongodb/mongodb-enterprise-server Docker 镜像说明(MongoDB 企业版服务器,适合企业级 NoSQL 数据库)