[Solved] Docker Compose Mac Error: Cannot start service zoo1: Mounts denied:

Hello Guys How are you all ? Hope you all are fine. While I am executing docker-compose up -d: on my mac through error Cannot start service zoo1: Mounts denied  in my mac.

So here I am come with all possible solution .

What is Error ?

I am getting the following error when running docker-compose up -d:

It worked yesterday before I updated Docker for Mac multiple times to Docker version 20.10.0, build 7287ab3. Macbook is running Big Sur 11.0.1.

Note: It works if Docker is downgraded to 19.03.13. But this is not a good solution.

% docker-compose up -d

Creating network "kafka-test_default" with the default driver
Creating kafka-test_zoo1_1 ... error

ERROR: for kafka-test_zoo1_1  Cannot start service zoo1: Mounts denied: approving /Users/test/kafka-test/zk-single-kafka-single/zoo1/datalog: file does not exist

ERROR: for zoo1  Cannot start service zoo1: Mounts denied: approving /Users/test/kafka-test/zk-single-kafka-single/zoo1/datalog: file does not exist
ERROR: Encountered errors while bringing up the project.

Solution

Docker Compose mac Error: Cannot Start Service Zoo1: Mounts Denied

After updating to Docker Desktop 3.0.0 for Mac this issue I am faced so that I upgraded to 3.0.1 and problem Fixed.

Solution 1

after updating to Docker Desktop 3.0.0 (for Mac). After going into Preferences and disabling Experimental Features -> Use gRPC FUSE for file sharing I was able to use volume mounts again.

Solution 2

To force your Docker Desktop app to update (on Mac), click the Whale Icon on the top toolbar, then “Check for Updates”. After the update has installed, restart Docker. Now you should need to turn off “Experimental Features -> Use gRPC FUSE for file sharing”

Solution 3

after updating to Docker Desktop 3.0.0 for Mac. This is above answer solved the problem for me, then I found the following resources explaining there was a bug in 3.0.0 -> so I upgraded to 3.0.1 and problem fixed! #5115

Summery

So Hope This Above 3 Solution Will Work For You Too. So it’s all About Chrome console – Uncaught (in promise) TypeError: this.engines is not iterable error. Hope this tutorial helped you a lot. Comment below Your thoughts and your queries. And Also Comment on your suggestion here.

Also Read

Leave a Comment