OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Docker not finding a path I added to File Sharing on MacOS Big Sur

  • Thread starter Thread starter Samantha Garcia
  • Start date Start date
S

Samantha Garcia

Guest
I am trying to use docker to help create caffe models using this tutorial, and I am getting an error that my path is not configured, however I followed the instructions to configure the file as shown in the error below:

Code:
docker: Error response from daemon: Mounts denied:  The path /shared_folder is not shared from the host and is not known to Docker. You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.

I got this error running the following command:

Code:
docker run -ti -v /shared_folder:/root/shared_folder bvlc/caffe:cpu bash

I've tried adding it to my File Sharing directory directly, by editing the json file and adding / to the end of the path, but nothing has worked. I also tried putting in a directory called "private," and it gives a different error:

Code:
docker: Error response from daemon: error while creating mount source path '/private/shared_folder': mkdir /private/shared_folder: operation not permitted.

I'm not sure where to go next and can't move forward until I am able to run this command. Any idea why Mac is not finding the path properly?
<p>I am trying to use docker to help create caffe models using <a href="https://medium.com/@rosstopherkeen/using-caffe-on-macos-os-x-3f923cd499e" rel="nofollow noreferrer">this tutorial</a>, and I am getting an error that my path is not configured, however I followed the instructions to configure the file as shown in the error below:</p>
<pre><code>docker: Error response from daemon: Mounts denied: The path /shared_folder is not shared from the host and is not known to Docker. You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
</code></pre>
<p>I got this error running the following command:</p>
<pre><code>docker run -ti -v /shared_folder:/root/shared_folder bvlc/caffe:cpu bash
</code></pre>
<p>I've tried adding it to my File Sharing directory directly, by editing the json file and adding / to the end of the path, but nothing has worked. I also tried putting in a directory called "private," and it gives a different error:</p>
<pre><code>docker: Error response from daemon: error while creating mount source path '/private/shared_folder': mkdir /private/shared_folder: operation not permitted.
</code></pre>
<p>I'm not sure where to go next and can't move forward until I am able to run this command. Any idea why Mac is not finding the path properly?</p>
 

Latest posts

Top