CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] v1606+ Install pb with Docker on OSX El Capitan (https://www.cfd-online.com/Forums/openfoam-installation/178491-v1606-install-pb-docker-osx-el-capitan.html)

BPich October 9, 2016 13:33

v1606+ Install pb with Docker on OSX El Capitan
 
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!:D)
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)

wyldckat October 9, 2016 15:37

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).

BPich October 10, 2016 16:09

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 :D

Any ideas?

wyldckat October 10, 2016 18:52

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...


All times are GMT -4. The time now is 21:31.