CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] v1606+ On Mac: "Error response from daemon: Mounts denied:"

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes
  • 3 Post By pgh
  • 1 Post By pgh
  • 1 Post By pgh
  • 1 Post By pgh
  • 1 Post By pgh

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 8, 2016, 14:21
Default v1606+ On Mac: "Error response from daemon: Mounts denied:"
  #1
New Member
 
Adam Dershowitz
Join Date: Apr 2016
Posts: 5
Rep Power: 10
dersh is on a distinguished road
I have not been having any luck getting OpenFOAM to run with Docker for Mac. I just did a fresh install of Docker for Mac (this is no longer in beta).
$docker info shows that that docker is running.

Here is the first problem:
Code:
$docker-machine ssh default $HOME/installMacOpenFOAM+ $HOME
Host does not exist: "default"
Since, that wasn’t working, I decided to try following the linux instructions from the same page. That leads to more progress:

Code:
$./installMacOpenFOAM+ 
********************************************************* 
Following Docker containers are present on your system:
********************************************************* 
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
**************************************** 
            
Creating Docker OpenFOAM+ container of_v1606_plus
Unable to find image 'openfoamplus/of_v1606plus_centos66:latest' locally
latest: Pulling from openfoamplus/of_v1606plus_centos66
44c8556c2421: Pull complete 
Digest: sha256:f2520d671e93d5a692c42fef7a8b4caa8d0a2c39d540a13664a9c5ac0d414a32
Status: Downloaded newer image for openfoamplus/of_v1606plus_centos66:latest
238ace393942096a8aa85444385dd7088d761cf3a4d3383a7fc3f863485b122d
docker: Error response from daemon: Mounts denied: 
The path /etc/sudoers.d
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-m...fs/#namespaces for more info.
..
Container of_v1606_plus was created.
**************************************************
Run the ./startMacOpenFoam+  script to launch container
**************************************************
So it did download:

Code:
$ docker images
REPOSITORY                           TAG                 IMAGE ID            CREATED             SIZE
openfoamplus/of_v1606plus_centos66   latest              19ebf385cb00        5 months ago        2.297 GB
But, I still can’t then run it. It seems that there is a permissions issue:
Code:
$ ./startMacOpenFOAM+ 
Error response from daemon: Mounts denied: 
The path /etc/sudoers.d
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-m...fs/#namespaces for more info.
.
Error: failed to start containers: of_v1606_plus
You cannot attach to a stopped container, start it first
I did also try to add /etc to Docker->Preferences->File Sharing but it complains that “the path /etc is reserved by Docker”

Any guidance would be greatly appreciated.

--Adam

Last edited by wyldckat; December 27, 2016 at 11:24. Reason: Added [CODE][/CODE] markers
dersh is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
[OpenFOAM.com] v1606+ On Mac: "Error response from daemon: No such container" pizzaspinate OpenFOAM Installation 1 December 27, 2016 11:36


All times are GMT -4. The time now is 10:17.