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

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

mongodb/mongodb-atlas-local

mongodb

通过Docker创建、管理和自动化MongoDB Atlas Local资源

12 次收藏下载次数: 0状态:社区镜像维护者:mongodb仓库类型:镜像最近更新:4 天前
轩辕镜像,加速的不只是镜像。点击查看
DockerHub 官方简介
轩辕镜像中文简介
标签下载
镜像标签列表与下载命令
轩辕镜像,加速的不只是镜像。点击查看

mongodb/mongodb-atlas-local

Create, manage, and automate MongoDB Atlas Local resources with Docker

Table of Contents

  • Repository Overview
  • Quickstart
    • Alternative deployment methods
      • Atlas CLI
      • MongoDB MCP Server
      • Docker Compose
    • Image Tags
  • Authentication
  • Seeding
  • Sample Data
  • Logs
  • Healthcheck
  • Telemetry
  • Image Tags
  • Licensing
  • Documentation

Repository Overview

This is the Docker image for the MongoDB Atlas Local experience. MongoDB Atlas Local provides a full deployment of both MongoDB (mongod) and MongoDB Search (mongot) as a single node replica set, so you can build applications with MongoDB, and make use of features like Atlas Search and Atlas Vector Search straight away, and throughout the entire software development lifecycle.

Quickstart

  1. Pull the Docker image
docker pull mongodb/mongodb-atlas-local
  1. Run the database
docker run -p 27017:27017 --name atlas-local mongodb/mongodb-atlas-local
  1. Wait until the container is healthy, then connect to the database
mongosh "mongodb://localhost/?directConnection=true"

Alternative deployment methods

Atlas CLI

The Atlas CLI provides a guided setup that can also be used in programmatic workflows. Follow these instructions to Create a Local Atlas deployment using the Atlas CLI.

MongoDB MCP Server

The https://github.com/mongodb/mongodb-mcp-server provides Model Context Protocol tools that let you interact with Atlas Local deployments from MCP-enabled clients such as VS Code, Cursor, and Claude Desktop. Follow this guide to Get Started with the MongoDB MCP Server.

Docker Compose

Docker Compose offers a repeatable way for other contributors to set up full MongoDB environments in a reliable way (including healthchecks and initializing with data). Follow the Complete Guide to Deploying MongoDB Atlas Local with Docker Compose available from the official MongoDB documentation.

Image Tags

Supported versions

There are four fundamental supported tags:

  • latest tracks the latest stable release of MongoDB
  • preview tracks the latest stable release of MongoDB, but with new experimental features
  • 8.0 tracks the latest 8.0 version of MongoDB
  • 7.0 tracks the latest 7.0 version of MongoDB

Specific MongoDB builds

To pin a specific version of MongoDB, we provide tags for every build, with tags formatted as <major>.<minor>.<patch>-<timestamp>, for example: 8.0.17-20260218T161908Z. You can view all available tags https://hub.docker.com/r/mongodb/mongodb-atlas-local/tags.

Preview builds

The preview tag makes new experimental features available in Atlas Local.

Note: The preview tag only supports the latest version of MongoDB.

Current experimental features

  • Use of https://github.com/mongodb/mongot?tab=readme-ov-file image
    • This edition of MongoDB Search (mongot) enables use of auto-embedding, utilizing AI to automatically embed your vector indexes. See here for more information on Auto-embedding.
    • Provide your Voyage API key through the environment variable VOYAGE_API_KEY.

The following should be ***ed when using this image:

  • MongoDB Search in Community image is in preview and may change at any time during the preview period.
    • Additionally, the $listSearchIndexes aggregation stage is not complete.
  • Currently, the only supported embedding provider endpoint is ai.mongodb.com.
    • Your voyage API key must be provisioned via the Atlas UI. See Model API Keys for more information on provisioning API keys.
  • You may see rate limiting (429) on lower AI Model tiers.
    • See Manage Rate Limits to learn more about rate limiting and AI Model tiers.

Authentication

To set up authentication for your local deployment, specify the following environment variables:

  • MONGODB_INITDB_ROOT_USERNAME: The username for the root user.
  • MONGODB_INITDB_ROOT_PASSWORD: The password for the root user.

You may also set it via filename mappings for an extra layer of security. Specify the following environment variables:

  • MONGODB_INITDB_ROOT_USERNAME_FILE: The path to the file containing the username for the root user.
  • MONGODB_INITDB_ROOT_PASSWORD_FILE: The path to the file containing the password for the root user.

Seeding

Map a volume to /docker-entrypoint-initdb.d containing .sh or .js files, they will be executed in alphabetical order.

The default db connected will be test unless the environment variable MONGODB_INITDB_DATABASE is set.

You can use $CONNECTION_STRING as the URI for connecting to databases in your init scripts, as it holds the default connection string for the database.

Sample Data

To automatically load the MongoDB sample dataset during initialization, set the MONGODB_LOAD_SAMPLE_DATA environment variable to true.

Logs

By default we only redirect mongod logs to stdout and stderr. You can set the extra environment variables to enable more logging:

  • MONGOT_LOG_FILE: The path to the file where you want to store the logs of Atlas Search (mongot).
  • RUNNER_LOG_FILE: The path to the file where you want to store the logs of runner.

Note: both of these variables can be set to /dev/stdout or /dev/stderr for convenience.

Healthcheck

The image automatically runs a healthcheck every 30s to verify that mongod and mongot are healthy and that seeding scripts have successfully completed.

To programmatically wait for a healthy status of the container:

  • Using bash, run
while [ "`docker inspect -f {{.State.Health.Status}} atlas-local`" != "healthy" ]; do sleep 2; done
  • Using Docker Compose, add the following to your compose.yml
depends_on:
  atlas-local
    condition: service_healthy

Telemetry

This image collects anonymous telemetry data to help us improve the product and to provide you with a better user experience. The data collected includes:

  • Container lifecycle events: startup/shutdown timing, authentication status, seeding results
  • Index usage: counts of search and vector indexes created and used
  • Database activity: CRUD operation counts, database uptime, total database size
  • Client information: anonymized driver versions, operating systems, and application names (limited to MongoDB official tools like Compass and mongosh)

All telemetry is associated with an anonymous deployment UUID. No customer data, database names, or personally identifiable information is collected.

You can opt out of telemetry by setting the DO_NOT_TRACK environment variable to 1. For example:

docker run -e DO_NOT_TRACK=1 -p 27017:27017 --name atlas-local mongodb/mongodb-atlas-local

Licensing

The specific licenses depend on which Atlas Local image is used. To check the license of a currently running Atlas Local instance, run the following commands:

  • List all the licenses
    • docker exec atlas-local ls -Rp /usr/share/licenses/mongodb/
  • Print the license text
    • docker exec atlas-local cat /usr/share/licenses/mongodb/LICENSE.txt
    • docker exec atlas-local cat /usr/share/licenses/mongodb/mongot/LICENSE.txt
    • docker exec atlas-local cat /usr/share/licenses/mongodb/server/LICENSE-Community.txt
    • docker exec atlas-local cat /usr/share/licenses/mongodb/runner/LICENSE.txt

Documentation

For more information, see Create a Local Atlas Deployment with Docker.

镜像拉取方式

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

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

docker pull docker.xuanyuan.run/mongodb/mongodb-atlas-local:<标签>

使用方法:

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

DockerHub 原生拉取命令

docker pull mongodb/mongodb-atlas-local:<标签>

更多 mongodb-atlas-local 镜像推荐

mongodb/mongodb-atlas-search logo

mongodb/mongodb-atlas-search

mongodb
Atlas Search提供无缝、可扩展的体验,用于构建基于相关性的应用功能。
4 次收藏100万+ 次下载
24 天前更新
mongodb/atlas logo

mongodb/atlas

mongodb
从命令行创建、管理和自动化MongoDB Atlas资源
12 次收藏50万+ 次下载
1 天前更新
mongodb/mongodb-community-server logo

mongodb/mongodb-community-server

mongodb
官方MongoDB社区服务器是由MongoDB公司推出的免费开源文档数据库服务,专为开发者与技术社区打造,支持以JSON格式存储灵活的非结构化及半结构化数据,具备高可扩展性、易部署性和丰富的查询功能,广泛应用于Web开发、大数据分析、移动应用后端等场景,为用户提供高效的数据管理解决方案并促进社区协作与技术交流。
184 次收藏1000万+ 次下载
22 小时前更新
mongodb/mongodb-atlas-kubernetes-operator logo

mongodb/mongodb-atlas-kubernetes-operator

mongodb
MongoDB Atlas Kubernetes Operator - 基于Kubernetes原生管理MongoDB Atlas基础设施
5 次收藏100万+ 次下载
2 天前更新
localstack/localstack logo

localstack/localstack

localstack
LocalStack是一款可在单个容器中运行的云服务模拟器,支持在本地离线运行AWS应用程序或Lambda函数,无需连接远程云提供商,加速云应用的测试与开发工作流程。
345 次收藏1亿+ 次下载
1 天前更新
mongodb/mongodb-enterprise-server logo

mongodb/mongodb-enterprise-server

mongodb
MongoDB官方企业高级服务器是面向企业级应用的高性能、可扩展文档数据库服务器,支持复杂查询、分布式部署与实时数据分析,提供企业级安全特性(如身份验证、数据加密)、完善的数据备份与恢复机制及专业监控工具,助力企业构建稳定高效的现代应用架构,满足大规模数据存储、处理与业务创新需求。
15 次收藏500万+ 次下载
22 小时前更新

查看更多 mongodb-atlas-local 相关镜像

轩辕镜像配置手册

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

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访问体验非常流畅,大镜像也能快速完成下载。"

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