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

[OpenFOAM.com] Docker OpenFOAM install error on Mac OS X

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2016, 16:54
Default Docker OpenFOAM install error on Mac OS X
  #1
New Member
 
Adam Dershowitz
Join Date: Apr 2016
Posts: 5
Rep Power: 10
dersh is on a distinguished road
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
**************************************************
If I then try to use the run script, I get that same error. I just installed Docker, and it does run properly for hello-world, as a test.
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
dersh is offline   Reply With Quote

Old   April 22, 2016, 00:32
Default
  #2
New Member
 
HUANG Junji
Join Date: Nov 2013
Posts: 4
Rep Power: 12
hjj3118 is on a distinguished road
Follow this thread. I just tried and it worked.
http://www.cfd-online.com/Forums/ope...-yosemite.html
hjj3118 is offline   Reply With Quote

Old   April 24, 2016, 13:57
Default
  #3
Member
 
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 12
davibarreira is on a distinguished road
It seems that the docker container wasn't created properly. Use docker ps -a to see if the container is there.
davibarreira is offline   Reply With Quote

Old   April 24, 2016, 16:27
Default
  #4
New Member
 
Adam Dershowitz
Join Date: Apr 2016
Posts: 5
Rep Power: 10
dersh is on a distinguished road
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.
dersh is offline   Reply With Quote

Old   April 25, 2016, 09:23
Default
  #5
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 10
pgh is on a distinguished road
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
pgh is offline   Reply With Quote

Old   April 25, 2016, 11:55
Default
  #6
Member
 
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 12
davibarreira is on a distinguished road
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.
davibarreira is offline   Reply With Quote

Old   April 29, 2016, 17:29
Default
  #7
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 10
pgh is on a distinguished road
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
pgh is offline   Reply With Quote

Old   April 29, 2016, 19:34
Default
  #8
New Member
 
Adam Dershowitz
Join Date: Apr 2016
Posts: 5
Rep Power: 10
dersh is on a distinguished road
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.
dersh is offline   Reply With Quote

Old   April 29, 2016, 20:07
Default
  #9
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 10
pgh is on a distinguished road
OpenCFD know the issue and is looking into it
pgh is offline   Reply With Quote

Old   May 6, 2016, 09:28
Default
  #10
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 10
pgh is on a distinguished road
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
Attached Files
File Type: gz installOpenFOAM_MAC_pgh.gz (677 Bytes, 38 views)

Last edited by pgh; May 6, 2016 at 10:28.
pgh is offline   Reply With Quote

Old   May 6, 2016, 12:49
Default
  #11
New Member
 
Adam Dershowitz
Join Date: Apr 2016
Posts: 5
Rep Power: 10
dersh is on a distinguished road
Yes, it seems to working fine now. Thank you much.
dersh is offline   Reply With Quote

Reply


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.org] A Mac OS X of23x Development Environment Using Docker rt08 OpenFOAM Installation 1 February 28, 2016 19:00
OpenFOAM 2.2.2 source pack installation on Xubuntu 13.10 zordiack OpenFOAM Installation 1 October 26, 2013 13:08
OpenFOAM Install problem masb OpenFOAM 3 May 25, 2009 11:32
Mac Simple Install Request or Processing Assistance Help sjohnson OpenFOAM Installation 4 December 12, 2008 07:46
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 18:57.