Error: image download failed: failed to download the MongoDB image

Can’t setup a local atlas deployment but getting the error failed to download the MongoDB image:

% atlas deployments setup --debug

? What type of deployment would you like to work with? local

[Default Settings]
Deployment Name   local6696
MongoDB Version   8.0

? How do you want to set up your local Atlas deployment? default

Creating your cluster local6696
1/3: Starting your local environment...
2/3: Downloading the latest MongoDB image to your local environment...
Error: image download failed: failed to download the MongoDB image
telemetry: events: [{2025-08-18 12:38:35.982876 -0400 EDT atlascli map[HostName:native UserAgent:atlascli/1.46.2 (darwin;amd64;native) alias:setup arch:amd64 auth_method:oauth choice:local ci:false cli_event_type:prompt cli_user_type:default command:atlas-deployments-setup default:false device_id:3170e6e599a3659d9e041bcaa57e047a3531ae96bc19bd1ea693ebb885b66deb empty:false git_commit: org_id:5fbc7ebf604dd8052d915d3e os:darwin output:plaintext profile:default project_id:687c0ab33e4d7d0798edd620 prompt:What type of deployment would you like to work with? prompt_type:select result:SUCCESS service:cloud skip_update_check:false terminal:tty version:1.46.2]} 
{2025-08-18 12:38:37.907458 -0400 EDT atlascli map[HostName:native UserAgent:atlascli/1.46.2 (darwin;amd64;native) alias:setup arch:amd64 auth_method:oauth choice:default ci:false cli_event_type:prompt cli_user_type:default command:atlas-deployments-setup default:true device_id:3170e6e599a3659d9e041bcaa57e047a3531ae96bc19bd1ea693ebb885b66deb empty:false git_commit: org_id:5fbc7ebf604dd8052d915d3e os:darwin output:plaintext profile:default project_id:687c0ab33e4d7d0798edd620 prompt:How do you want to set up your local Atlas deployment? prompt_type:select result:SUCCESS service:cloud skip_update_check:false terminal:tty version:1.46.2]} 
{2025-08-18 12:39:04.397951 -0400 EDT atlascli map[HostName:native UserAgent:atlascli/1.46.2 (darwin;amd64;native) alias:setup arch:amd64 auth_method:oauth ci:false cli_event_type:cmd cli_user_type:default command:atlas-deployments-setup device_id:3170e6e599a3659d9e041bcaa57e047a3531ae96bc19bd1ea693ebb885b66deb duration:33549 error:image download failed: failed to download the MongoDB image git_commit: org_id:5fbc7ebf604dd8052d915d3e os:darwin output:plaintext profile:default project_id:687c0ab33e4d7d0798edd620 result:ERROR service:cloud skip_update_check:false terminal:tty version:1.46.2]} 
{2025-08-18 12:39:35.326655 -0400 EDT atlascli map[HostName:native UserAgent:atlascli/1.46.2 (darwin;amd64;native) alias:setup arch:amd64 auth_method:oauth choice:local ci:false cli_event_type:prompt cli_user_type:default command:atlas-deployments-setup default:false device_id:3170e6e599a3659d9e041bcaa57e047a3531ae96bc19bd1ea693ebb885b66deb empty:false flags:[debug] git_commit: org_id:5fbc7ebf604dd8052d915d3e os:darwin output:plaintext profile:default project_id:687c0ab33e4d7d0798edd620 prompt:What type of deployment would you like to work with? prompt_type:select result:SUCCESS service:cloud skip_update_check:false terminal:tty version:1.46.2]} 
{2025-08-18 12:39:36.34702 -0400 EDT atlascli map[HostName:native UserAgent:atlascli/1.46.2 (darwin;amd64;native) alias:setup arch:amd64 auth_method:oauth choice:default ci:false cli_event_type:prompt cli_user_type:default command:atlas-deployments-setup default:true device_id:3170e6e599a3659d9e041bcaa57e047a3531ae96bc19bd1ea693ebb885b66deb empty:false flags:[debug] git_commit: org_id:5fbc7ebf604dd8052d915d3e os:darwin output:plaintext profile:default project_id:687c0ab33e4d7d0798edd620 prompt:How do you want to set up your local Atlas deployment? prompt_type:select result:SUCCESS service:cloud skip_update_check:false terminal:tty version:1.46.2]} 
{2025-08-18 12:39:41.962307 -0400 EDT atlascli map[HostName:native UserAgent:atlascli/1.46.2 (darwin;amd64;native) alias:setup arch:amd64 auth_method:oauth ci:false cli_event_type:cmd cli_user_type:default command:atlas-deployments-setup device_id:3170e6e599a3659d9e041bcaa57e047a3531ae96bc19bd1ea693ebb885b66deb duration:8514 error:interrupt flags:[debug] git_commit: org_id:5fbc7ebf604dd8052d915d3e os:darwin output:plaintext profile:default project_id:687c0ab33e4d7d0798edd620 result:ERROR service:cloud signal:interrupt skip_update_check:false terminal:tty version:1.46.2]} 
{2025-08-18 12:40:10.09167 -0400 EDT atlascli map[HostName:native UserAgent:atlascli/1.46.2 (darwin;amd64;native) alias:setup arch:amd64 auth_method:oauth choice:local ci:false cli_event_type:prompt cli_user_type:default command:atlas-deployments-setup default:false device_id:3170e6e599a3659d9e041bcaa57e047a3531ae96bc19bd1ea693ebb885b66deb empty:false flags:[debug] git_commit: org_id:5fbc7ebf604dd8052d915d3e os:darwin output:plaintext profile:default project_id:687c0ab33e4d7d0798edd620 prompt:What type of deployment would you like to work with? prompt_type:select result:SUCCESS service:cloud skip_update_check:false terminal:tty version:1.46.2]} 
{2025-08-18 12:40:11.098584 -0400 EDT atlascli map[HostName:native UserAgent:atlascli/1.46.2 (darwin;amd64;native) alias:setup arch:amd64 auth_method:oauth choice:default ci:false cli_event_type:prompt cli_user_type:default command:atlas-deployments-setup default:true device_id:3170e6e599a3659d9e041bcaa57e047a3531ae96bc19bd1ea693ebb885b66deb empty:false flags:[debug] git_commit: org_id:5fbc7ebf604dd8052d915d3e os:darwin output:plaintext profile:default project_id:687c0ab33e4d7d0798edd620 prompt:How do you want to set up your local Atlas deployment? prompt_type:select result:SUCCESS service:cloud skip_update_check:false terminal:tty version:1.46.2]} 
{2025-08-18 12:40:26.450021 -0400 EDT m=+19.430460072 atlascli map[HostName:native UserAgent:atlascli/1.46.2 (darwin;amd64;native) alias:setup arch:amd64 auth_method:oauth ci:false cli_event_type:cmd cli_user_type:default command:atlas-deployments-setup device_id:3170e6e599a3659d9e041bcaa57e047a3531ae96bc19bd1ea693ebb885b66deb duration:19095 error:image download failed: failed to download the MongoDB image flags:[debug] git_commit: org_id:5fbc7ebf604dd8052d915d3e os:darwin output:plaintext profile:default project_id:687c0ab33e4d7d0798edd620 result:ERROR service:cloud skip_update_check:false terminal:tty version:1.46.2]}]

System details:

% atlas -v
atlascli version: 1.46.2
git version: 
Go version: go1.24.5
   os: darwin
   arch: amd64
   compiler: gc
% docker -v
Docker version 28.3.2, build 578ccf6
% sw_vers
ProductName:		macOS
ProductVersion:		15.5
BuildVersion:		24F74

Hi @Raschid_Jimenez. Let me see if I can help you.

What happens if you do docker pull mongodb/mongodb-atlas-local?

1 Like

This was my output of docker pull mongodb/mongodb-atlas-local :

% docker pull mongodb/mongodb-atlas-local 
Using default tag: latest 
latest: Pulling from mongodb/mongodb-atlas-local 
719fed365262: Pull complete 
828f3477ee3b: Pull complete 
49313c0de424: Pull complete 
2b383db514c2: Extracting [==================================================>] 220.8MB/220.8MB 
950710a14f6f: Download complete 
205cd380923b: Download complete 
025e39d70369: Download complete 
56a42a8e25c4: Download complete 
2742099b5622: Download complete 
failed to register layer: write /usr/bin/mongosh: no space left on device

It made me realize Docker was out of space, so I pruned it (docker system prune -a) and the problem solved.

Working like a charm now. Thanks for the guidance.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.