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

[OpenFOAM.com] v1606+ Install pb with Docker on OSX El Capitan

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 9, 2016, 13:33
Default v1606+ Install pb with Docker on OSX El Capitan
  #1
New Member
 
Barthélemy Picherit
Join Date: Oct 2016
Posts: 2
Rep Power: 0
BPich is on a distinguished road
Hello everyone,

I'm trying to set up openFOAM according to the tutorial provided by openFOAM website.

I installed virtualbox(Version 5.1.6 r110634 (Qt5.5.1)) and docker (v1.12.1) correctly (at least I think so!)
When asked to run "docker-machine ssh default $HOME/installMacOpenFOAM+ $HOME ", the command gives me the following result (which seems to be working properly):

************************************************** *******
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: Pulling fs layer
44c8556c2421: Verifying Checksum
44c8556c2421: Download complete
44c8556c2421: Pull complete
Digest: sha256:f2520d671e93d5a692c42fef7a8b4caa8d0a2c39d54 0a13664a9c5ac0d414a32
Status: Downloaded newer image for openfoamplus/of_v1606plus_centos66:latest
2778b86d98dfbb6919a637f1cc28c07420bb44c68e1deb63a2 cabb2d1a121d49
Container of_v1606_plus was created.
**************************************************
Run the ./startMacOpenFoam+ script to launch container
**************************************************


When I run the "./startMacOpenFoam+" command of the tutorial, I get the following message:
Error response from daemon: No such container: of_v1606_plus
Error: failed to start containers: of_v1606_plus
Error: No such container: of_v1606_plus

(Though the previous command contains a line "Container of_v1606_plus was created")

Indeed, when I check containers with the "docker ps -a" command, I don't get any active (nor inactive container).

I found no information about this error on the web.

Additional information: when I try to re-run the command "docker-machine ssh default $HOME/installMacOpenFOAM+ $HOME", I get the following result:
************************************************** *******
Following Docker containers are present on your system:
************************************************** *******
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2778b86d98df openfoamplus/of_v1606plus_centos66 "/bin/bash --rcfile /" About an hour ago Exited (1) About a minute ago of_v1606_plus
****************************************

Creating Docker OpenFOAM+ container of_v1606_plus
docker: Error response from daemon: Conflict. The name "/of_v1606_plus" is already in use by container 2778b86d98dfbb6919a637f1cc28c07420bb44c68e1deb63a2 cabb2d1a121d49. You have to remove (or rename) that container to be able to reuse that name..
See 'docker run --help'.
Container of_v1606_plus was created.
**************************************************
Run the ./startMacOpenFoam+ script to launch container
**************************************************

This indicates that the container does actually exist...

Please let me know what part I've been doing wrong!

Barth

(My mac runs on a OSX El Capitan 10.11.2)
BPich is offline   Reply With Quote

Old   October 9, 2016, 15:37
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: My guess, based on the output given, is that there is a conflict somewhere:
  1. Either you have accidentally installed two docker systems (which isn't very easy to do).
  2. Or the virtual machine that is running the Docker engine is having some communication problems.
You might want to either try restarting the real machine or only restarting the Docker VM (open VirtualBox and it will show you the list of available VMs, running or not).
__________________
wyldckat is offline   Reply With Quote

Old   October 10, 2016, 16:09
Default
  #3
New Member
 
Barthélemy Picherit
Join Date: Oct 2016
Posts: 2
Rep Power: 0
BPich is on a distinguished road
Hello,

Thank you for your quick response!
I tried restarting both machines (real and virtual), unfortunately I get the same problem.
"./startMacOpenFOAM+ " still gives me :
Error response from daemon: No such container: of_v1606_plus
Error: failed to start containers: of_v1606_plus
Error: No such container: of_v1606_plus


Whereas retrying the install command :
"docker-machine ssh default $HOME/installMacOpenFOAM+ $HOME" still gives me a conflict with the existing container:
Creating Docker OpenFOAM+ container of_v1606_plus
docker: Error response from daemon: Conflict. The name "/of_v1606_plus" is already in use by container 6702ec5deca85076fcdbcbe33a486f66bb4c7be66d46392610 b79c19e8ebc44a. You have to remove (or rename) that container to be able to reuse that name..
See 'docker run --help'.
Container of_v1606_plus was created.
**************************************************
Run the ./startMacOpenFoam+ script to launch container
**************************************************


I guess I'm not good enough to have installed two docker systems

Any ideas?
BPich is offline   Reply With Quote

Old   October 10, 2016, 18:52
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Hold on, then what do you get if you run it like this?
Code:
docker-machine ssh default $HOME/startMacOpenFoam+ $HOME
It doesn't seem to make much sense to me, but still...
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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.com] Docker vs Not Docker v2 AND installing editors into Docker u2berggeist OpenFOAM Installation 1 July 10, 2018 02:58
[OpenFOAM.com] How to install a text editor in the Docker container? CFDOnlineyangdaxia OpenFOAM Installation 2 April 10, 2017 07:31
[OpenFOAM.com] Docker OpenFOAM install error on Mac OS X dersh OpenFOAM Installation 10 May 6, 2016 12:49
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker rt08 OpenFOAM Installation 1 February 28, 2016 19:00
[OpenFOAM.org] Installation notes: OpenFOAM 2.3.x (git repo) on OSX 10.9 opedrofunk OpenFOAM Installation 7 July 1, 2015 13:51


All times are GMT -4. The time now is 03:35.