Skip to content

Commit

Permalink
(DOCSP-46401) Adds install workaround for m4 chips. (#809)
Browse files Browse the repository at this point in the history
* (DOCSP-46401) Adds install workaround for m4 chips.

* Revises per tech review.
  • Loading branch information
erabil-mdb authored Jan 14, 2025
1 parent f6773dd commit 75321bf
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/atlas-cli-deploy-docker.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Create a Local |service| Deployment with Docker
docker pull mongodb/mongodb-atlas-local:latest

.. step:: Run the Docker image.

**Example:**

.. tabs::
Expand All @@ -53,13 +53,17 @@ Create a Local |service| Deployment with Docker

docker run -p 27017:27017 mongodb/mongodb-atlas-local

.. include:: /includes/fact-installation-workaround-m4chips.rst

.. tab:: Manually Connect with Auth
:tabid: with-auth

.. code-block:: sh

docker run -e MONGODB_INITDB_ROOT_USERNAME=user -e MONGODB_INITDB_ROOT_PASSWORD=pass -p 27017:27017 mongodb/mongodb-atlas-local

.. include:: /includes/fact-installation-workaround-m4chips.rst

.. tab:: Automate Connection
:tabid: automate-connection

Expand Down
6 changes: 6 additions & 0 deletions source/atlas-cli-deploy-local.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ Create a Local Atlas Deployment
Use the ``atlas deployments`` command to create a local |service|
deployment.

.. important::

If your local machine runs MacOS Sequoia 15.2 with the Apple Silicon M4 chip, follow the procedure for
:ref:`creating a local Atlas deployment with Docker <atlas-cli-deploy-docker>`
instead of this procedure to avoid the error: ``container configuration failed``.

You can run this command in the following ways:

- **Interactive Mode (Default)**: the command prompts you for the
Expand Down
9 changes: 9 additions & 0 deletions source/includes/fact-installation-workaround-m4chips.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. important::

If your local machine runs MacOS Sequoia 15.2 with the Apple Silicon M4 chip, add the following
:abbr:`JVM (Java Virtual Machine)` parameter to the ``docker run`` command
to prevent your container from crashing upon startup. For example:

.. code-block:: sh
docker run -e JAVA_TOOL_OPTIONS="-XX:UseSVE=0" -p 27017:27017 mongodb/mongodb-atlas-local

0 comments on commit 75321bf

Please sign in to comment.