liveBook · Manning

Docker

As explained in MongoDB 8.0 in Action, Third Edition

A Docker container is an isolated runtime instance created from a Docker image.

Docker is an open source platform for deploying, scaling, and managing applications through containerization. Containers package an application and its dependencies into a lightweight unit that runs consistently across environments. section 13.2.1

For local MongoDB Atlas development, Docker isolates the database environment, reduces setup conflicts, supports repeatable testing, and makes the setup easier to move or replicate across systems. section 13.2.1 section 13.6

A practical local Atlas workflow is:

  • Install Docker Desktop 4.31 or later on macOS or Windows, or Docker Engine 27.0 or later on Linux. section 13.2.1
  • Confirm that Docker is running with docker info; pulling and caching MongoDB images requires a network connection. section 13.2.1
  • Create a local Atlas deployment with atlas deployments setup --type local, then use atlas deployments to connect, start, pause, inspect logs, or delete it. section 13.1 section 13.6

Check Docker before creating a local cluster

Run docker info. A successful response shows the Docker client, context, version, and available plugins, confirming that Docker is available for the Atlas CLI workflow.

A local Atlas cluster can run mongod and mongot as separate components in Docker. mongod provides the database process, while mongot handles full-text and vector search through managed indexes. section 13.1 section 13.6

How MongoDB 8.0 in Action, Third Edition covers it

How deep it goes
Defines containerization and walks through installation, verification, and Atlas deployment management, without detailing Docker internals.
Examples
Uses docker info and atlas deployments setup --type local to verify Docker and create a local Atlas cluster.
What it assumes
Assumes a supported Docker installation and network access for MongoDB images, while introducing the local Atlas workflow from installation checks.
What you can do after
Operate a Docker-backed local Atlas deployment, including setup, connection, lifecycle management, logging, and search configuration.
How it connects
Connects containerization with Docker Engine, MongoDB Atlas, the Atlas CLI, mongod, mongot, Atlas Search, and Atlas Vector Search.

Also explained in

Compare how 26 books explain Docker →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of MongoDB 8.0 in Action, Third Edition. The section links point to the parts of the book it draws on.