|
[Sponsors] |
[OpenFOAM.com] Docker OpenFOAM install error on Mac OS X |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 21, 2016, 17:54 |
Docker OpenFOAM install error on Mac OS X
|
#1 |
New Member
Adam Dershowitz
Join Date: Apr 2016
Posts: 5
Rep Power: 10 |
I'm trying to install OpenFOAM, using docker on a mac. When I run the install script I get the following error:
Code:
8793ee45f4c1: Download complete 8793ee45f4c1: Pull complete Digest: sha256:25843a71bf284b92d0a4c3bd1d272952c8dc92c597530598b4491bc7b782df2a Status: Downloaded newer image for openfoamplus/of_v30plus_rhel66:latest c5e62a55e8b2a640a5af5e7652a0ba6497134899ad36b0059a1c809dcb7cc333 docker: Error response from daemon: linux spec user: Unable to find user docker. Container of_v3.0_plus was created. ************************************************** Run the startOpenFOAM+ script to launch container ************************************************** Is there a missing step in the install instructions for OpenFOAM? Or a bug in the install script? I am following these instructions: HTML Code:
http://www.openfoam.com/download/install-binary.php |
|
April 22, 2016, 01:32 |
|
#2 |
New Member
HUANG Junji
Join Date: Nov 2013
Posts: 4
Rep Power: 13 |
Follow this thread. I just tried and it worked.
http://www.cfd-online.com/Forums/ope...-yosemite.html |
|
April 24, 2016, 14:57 |
|
#3 |
Member
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 12 |
It seems that the docker container wasn't created properly. Use docker ps -a to see if the container is there.
|
|
April 24, 2016, 17:27 |
|
#4 |
New Member
Adam Dershowitz
Join Date: Apr 2016
Posts: 5
Rep Power: 10 |
I did try using the scripts in the linked thread, mentioned above, and then I can run the docker container, although there are still some permission issues, as discussed in that thread as well. So, either the instructions are wrong, or the docker container wasn't created properly.
|
|
April 25, 2016, 10:23 |
|
#5 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
I created a folder in Users\pgh with name Projects and provides read+ write permission to it for every user. I put all my project in this directory and it is working fine . (If in doubt , google how to give read+write permission to folder for all users
|
|
April 25, 2016, 12:55 |
|
#6 |
Member
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 12 |
When you install docker (at least, in Linux), it asks if you want to add users, so you don't need to run things as admin (root). Perhaps this is your problem.
|
|
April 29, 2016, 18:29 |
|
#7 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
Download the latest /installOpenFOAM+ script, it would work..Also before running new ./installOpenFOAM+ script, make sure to delete old created container with this command 'docker rm -f of_v3.0_plus' .. The problem was coming as new docker version does not support some functionality as was there in earlier version
|
|
April 29, 2016, 20:34 |
|
#8 |
New Member
Adam Dershowitz
Join Date: Apr 2016
Posts: 5
Rep Power: 10 |
Thanks. yes, it now works.
I realized that the default example instructions don't work: bash-4.1$ mkdir -p $FOAM_RUN mkdir: cannot create directory `/home/docker': Permission denied But, I can just create a directory in the startup location (/Users/my_mac_login) and work from there. I'm not sure why this discrepancy happens, but it can confuse newbies so I wanted to make a note of it. Thanks for the help. |
|
April 29, 2016, 21:07 |
|
#9 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
OpenCFD know the issue and is looking into it
|
|
May 6, 2016, 10:28 |
|
#10 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
Hi .. use this script and it should work fine .
i)delete old container docker rm -f of_v3.0_plus ii) run new script attached here (unzip the script first) Please place script in home folder and then run command from docker terminal as docker-machine ssh default $HOME/installOpenFOAM_MAC_pgh $HOME It will login as docker user and you can run openfoam and there will be no permission issue . you can then run tutorial using command mkdir -p $FOAM_RUN run cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity . cd cavity blockMesh icoFoam Also you can login as root now . password for root : 0fuser2015 Let me know if it works or you face any issue Last edited by pgh; May 6, 2016 at 11:28. |
|
May 6, 2016, 13:49 |
|
#11 |
New Member
Adam Dershowitz
Join Date: Apr 2016
Posts: 5
Rep Power: 10 |
Yes, it seems to working fine now. Thank you much.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker | rt08 | OpenFOAM Installation | 1 | February 28, 2016 20:00 |
OpenFOAM 2.2.2 source pack installation on Xubuntu 13.10 | zordiack | OpenFOAM Installation | 1 | October 26, 2013 14:08 |
OpenFOAM Install problem | masb | OpenFOAM | 3 | May 25, 2009 12:32 |
Mac Simple Install Request or Processing Assistance Help | sjohnson | OpenFOAM Installation | 4 | December 12, 2008 08:46 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |