Software⏱️ 2 min read📅 2026-05-31

How to Fix: Mounts denied. The paths ... are not shared from OS X and are not known to Docker

Docker mount error due to OS X file sharing limitations.

Quick Answer: Try using a different path, such as /Users/your_username/Documents, which is a shared directory on OS X.

To resolve the 'Mounts denied' error when running Docker on a Mac, it's essential to understand that some paths are not shared from OS X and are not known to Docker. The issue arises because Docker is unable to mount paths like /var/folders/zz/... due to their private nature.

🛑 Root Causes of the Error

  • The paths are not shared from OS X and are not known to Docker.

🚀 How to Resolve This Issue

Method 1: Shared Folder Setup

  1. Step 1: Open the Docker preferences by clicking on Docker in the menu bar and selecting 'Preferences'.

Method 2: Using a Shared Folder from File Sharing

  1. Step 1: Open the 'File Sharing' preference in Docker.

🎯 Final Words

To resolve this issue, you can either set up a shared folder using the 'Shared Folder Setup' method or use an existing shared folder from File Sharing. By following these steps, you should be able to mount paths in Docker without any issues.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions