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

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题轩辕镜像免费版
其他
关于我们网站地图
热门搜索:
percona-server-mongodb

percona/percona-server-mongodb

percona

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

43 次收藏下载次数: 0状态:社区镜像维护者:percona仓库类型:镜像最近更新:27 天前
轩辕镜像,加速的不只是镜像。点击查看
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!

更多相关 Docker 镜像与资源

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

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

镜像拉取方式

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

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

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

使用方法:

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

DockerHub 原生拉取命令

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

更多 percona-server-mongodb 镜像推荐

perconalab/percona-server-mongodb logo

perconalab/percona-server-mongodb

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

apecloud/percona-server-mongodb

apecloud
暂无描述
5万+ 次下载
3 个月前更新
percona/percona-server logo

percona/percona-server

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

percona/percona-server-mongodb-operator

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

percona/percona-xtradb-cluster-operator

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

percona/percona-backup-mongodb

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

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

轩辕镜像配置手册

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

Docker 配置

登录仓库拉取

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

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

Harbor 镜像源配置

Harbor Proxy Repository 对接专属域名

Portainer 镜像源配置

Portainer Registries 加速拉取

Nexus 镜像源配置

Nexus3 Docker Proxy 内网缓存

系统配置

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 search 限制

Docker Hub 上有的镜像,为什么在轩辕镜像网站搜不到?

站内搜不到镜像

机器不能直连外网时,怎么用 docker save / load 迁镜像?

离线 save/load

docker pull 拉插件报错(plugin v1+json)怎么办?

插件要用 plugin install

WSL 里 Docker 拉镜像特别慢,怎么排查和优化?

WSL 拉取慢

轩辕镜像安全吗?如何用 digest 校验镜像没被篡改?

安全与 digest

第一次用轩辕镜像拉 Docker 镜像,要怎么登录和配置?

新手拉取配置

轩辕镜像合规吗?轩辕镜像的合规是怎么做的?

镜像合规机制

错误码与失败问题

docker pull 提示 manifest unknown 怎么办?

manifest unknown

docker pull 提示 no matching manifest 怎么办?

no matching manifest(架构)

镜像已拉取完成,却提示 invalid tar header 或 failed to register layer 怎么办?

invalid tar header(解压)

Docker pull 时 HTTPS / TLS 证书验证失败怎么办?

TLS 证书失败

Docker pull 时 DNS 解析超时或连不上仓库怎么办?

DNS 超时

docker 无法连接轩辕镜像域名怎么办?

域名连通性排查

Docker 拉取出现 410 Gone 怎么办?

410 Gone 排查

出现 402 或「流量用尽」提示怎么办?

402 与流量用尽

Docker 拉取提示 UNAUTHORIZED(401)怎么办?

401 认证失败

遇到 429 Too Many Requests(请求太频繁)怎么办?

429 限流

docker login 提示 Cannot autolaunch D-Bus,还算登录成功吗?

D-Bus 凭证提示

为什么会出现「单层超过 20GB」或 413,无法加速拉取?

413 与超大单层

账号 / 计费 / 权限

轩辕镜像免费版和专业版有什么区别?

免费版与专业版区别

轩辕镜像支持哪些 Docker 镜像仓库?

支持的镜像仓库

镜像拉取失败还会不会扣流量?

失败是否计费

麒麟 V10 / 统信 UOS 提示 KYSEC 权限不够怎么办?

KYSEC 拦截脚本

如何在轩辕镜像申请开具发票?

申请开票

怎么修改轩辕镜像的网站登录和仓库登录密码?

修改登录密码

如何注销轩辕镜像账户?要注意什么?

注销账户

配置与原理类

写了 registry-mirrors,为什么还是走官方或仍然报错?

mirrors 不生效

怎么用 docker tag 去掉镜像名里的轩辕域名前缀?

去掉域名前缀

如何拉取指定 CPU 架构的镜像(如 ARM64、AMD64)?

指定架构拉取

用轩辕镜像拉镜像时快时慢,常见原因有哪些?

拉取速度原因

查看全部问题→

用户好评

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

用户头像

oldzhang

运维工程师

Linux服务器

5

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

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