CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [Other] Having to reinstall Openfoam utilities inside docker after every log in (https://www.cfd-online.com/Forums/openfoam-installation/186459-having-reinstall-openfoam-utilities-inside-docker-after-every-log.html)

sohailr April 19, 2017 15:31

Having to reinstall Openfoam utilities inside docker after every log in
 
Dear all,

I am trying to install cfMesh. I am using a openfoam on debian with docker. I can install cfMesh and everything runs just fine. When I exit the docker however, my installed cfMesh utility is removed and I have to reinstall it every time I log into docker image.

Is there any way I can make the openfoam utilities I install permanent so I dont have to reinstall them after every log in?

Thanks

Sohail

wyldckat April 22, 2017 07:35

Quick answer:
  1. It may depend on the Docker image you are using and how it is configured to work.
  2. What I mean is that many of the Docker images that have been configured to use OpenFOAM, have a mount option that mounts your own real home folder into the contained instance.
  3. Therefore, if your home folder is mounted during boot up inside the contained instance, then the conventional installation steps for cfMesh and other custom software that is designed to work with OpenFOAM, should be installed at "~/OpenFOAM/your_username-OFversion/platforms", e.g.:
    Code:

    ~/OpenFOAM/ofuser-4.1/platforms
  4. I'm not familiar enough with Docker, so I suggest you search online for something like:
    Code:

    mount real home inside docker container

pgh May 28, 2017 05:09

Sohailr

a)When you are running OpenFOAM from OpenCFD using docker then , changes will be there in docker container untill or unless you have deleted the container.


All times are GMT -4. The time now is 11:29.