v1606+ On Mac: "Error response from daemon: Mounts denied:"
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 Code:
$./installMacOpenFOAM+ Code:
$ docker images Code:
$ ./startMacOpenFOAM+ Any guidance would be greatly appreciated. --Adam |
Quick answer: My guess is that the following description in the section "Frequently Asked Questions (FAQs)": http://www.openfoam.com/download/ins...y.php#x5-16000 - is related to the issue you're getting:
Quote:
On the other hand, have you tried following these instructions: https://docs.docker.com/engine/getst...r-installation - namely section "Step 3: Verify your installation"? |
Hi
With new docker-toolbox version in Mac, there is some issue . Either you can try to install previous version docker-toolbox i.e 1.12 or try new docker which run natively in Mac. However it will require some different script . I will share these script tomorrow. (Also you can try to uninstall all virtualbox and docker toolbox and then again reinstall all and run scripts. This is how it worked for some user as reported ) Thanks Pawan |
Hi,
I got openFOAM working on my mac yesterday using docker beta. however fot soem reason it stopped working today and i keep gettign the foloowing error message: Quote:
will really appreciate your script. Kind regards |
Hi
With new release i.e OpenFOAM-v612+ , one can run openfoam using native docker i.e without using virtual box. Try the new docker and use script in the path and see whether it solve your problem http://openfoam.com/download/install-binary-mac.php Thanks PGH |
Thanks for the response Pawan, for some reason I couldn't download those files new years eve. so I ended up suing the ubuntu version but now OpenFOAM is working. However, for some strange reason the su - password is not the same as my mac admin user password, which means I can't use yum install to make custom libraries.
I would appreciate some spill of know how on this issue. Thanks |
all resolved now I did install the custom libraries using yum. however, I couldn't run the case as a root user for some reason.
thanks |
Hi nasir
The files are uploaded afterwards i.e for mac . Are you using docker still or some unbuntu in virtual box ? Sorry this is not clear. Also you cannot run mpi using root (it is not advisable . If you have to use then use some other argument with it . See error message and it will show what argument you need to add ) Thanks Pawan |
Hello Pawan,
this issue has now been resolved i am using the docker on Mac and found the details of the root log in in the installMacOpenfoam script. however, I have tried to compile some custom scripts, i have used "wmake" and also tried using "yum install make". installation seems to complete but when i rum my openfoam case, it says it cannot read the custom libraries. i checked it seems like its been compiled just maybe in a different location. please have a look at the outcome: Code:
nasirs-Mac-Pro:~ nasiryakubu$ ./startMacOpenFOAM+ Kind regards |
Hi ...
Ok I think i understand the issue . But to confirm first Can you go inside workingDir and do ls and post the output . This is for me to confirm , Thanks Pawan |
Hi Pawan,
thanks for your response. have a look Applications Dropbox Public installMacOpenFOAM+ Applications (Parallels) Library chtMRF_bes_v4 polyDualMeshMod Desktop Movies chtMRF_bes_v4.tar.gz polyDualMeshMod.tar.gz Documents Music fieldFunctionObjectsMod startMacOpenFOAM+ Downloads Pictures fieldFunctionObjectsMod_v1612p.tar.gz untitled.geo.opt kind request |
Hi Nasir
Try following 1) Delete OpenFOAM directory i.e in your home area . One which is in parallel to workingDir 2) Now go inside workingDir and create a OpenFOAM directory . 3) Go one directory up i.e above workingDir and make symbolic link ln -s workingDir/OpenFOAM OpenFOAM Now compile your application and try to run your case. Let me know if it works Thanks Pawan |
Hello Pawan,
Thank you very much for your prompt reply. however, I am new to docker and for some reason, I cannot even locate the folder that stores those directors. I only see them when I run ./startMacOpenFoam+ and using the ofuser profile. also, i don't know what codes to use when trying to delete the OpenFOAM directory. i tried rm -OpenFOAM but it doesn't work either I would appreciate some guidance on this. Thanks |
Hi Nasir
Let's get a brief about working of openfoam in Mac using docker There is image i.e centos image which has OpenFOAM and ofuser in it which docker support in Mac . Now inside docker based centos image , the environment is same as linux . Now we have mounted your user directory i.e your home area to workingDir. Now to access OpenFOAM inside this image, we need to create and run container. 1. when you run startMacOpenFOAM+ script , it start container and login as ofuser . 2. if you run command ls , then you can see folder i.e in your case as workingDir OpenFOAM 3. run rm -rf OpenFOAM 4 cd workingDir 5. mkdir OpenFOAM 6. cd /home/ofuser 7. ln -s workingDir/OpenFOAM OpenFOAM I hope i answered your queries |
Hello Pawan,
Thank you very much, I think it works now but I am not able to run the simulation yet. Thanks for your help. I am trying to compile the "libfiniteVolumeCustomFields.so" however it's giving me 1 error message but can't figure out what the error message is. Fortunately it works perfectly on ubuntu 1604 openfoam v1612+ And v4.0.x. Kind regards |
ok.. It will be good if you can send error message .
|
Hello Pawan,
Thank you very much for your reply. when i run: Quote:
Quote:
Quote:
|
All times are GMT -4. The time now is 10:28. |