
- #Mac os docker images location mac os x#
- #Mac os docker images location install#
- #Mac os docker images location update#
- #Mac os docker images location full#
Have the OpenFOAM source code stored and compiled in a Docker container, and also store the OpenFOAM data in the virtual machine.

I have considered and tested three options: There is thus a balance between having good OpenFOAM performance and having good OS X integration. There are various third party add ons that make attempts to address various aspects of this but none are a complete solution and many introduce other problems. I have tried using sshfs and various virtual disk image mounting tools without success. The only way I have found is to ssh into docker-machine and browse/edit files in the terminal (after using a Docker command to look up where they are actually stored) but then we don’t have any real OS X integration (can’t view files in the Finder or access them in apps). Hopefully Docker will eventually resolve this by switching from vboxsf to NFS or similar.ĭue to the virtual machine setup, sharing files which are stored in Docker containers (or Docker volumes) back into OS X is challenging as they are buried somewhere in the docker-machine's virtual disk image. However due to limitations in virtual box’s file sharing (vboxsf) used by Docker this results in quite a degradation in read/write performance (see ). The OSX /Users/ directories are automatically shared to the virtual machine as default and can then be very easily mounted into a Docker container. Docker containers are actually run inside a custom 'docker-machine' virtual machine (using virtualbox) rather than in pure OSX, this virtual machine is however very very light weight.
#Mac os docker images location update#
#Mac os docker images location install#
I've been thinking about how we can use Docker to make it easier to install OpenFOAM on a Mac, that will: See this recent article for a summary of Docker and it's advantages for OpenFOAM - though this seems to be more focused on using a completely standard OpenFOAM build without additional libraries/apps etc by downloading one of several existing Docker containers. What I outline below is well suited to this usage profile.

I suspect that like many here, my MacBook is really just used for development work (writing code and testing it builds), whilst any cases are run on my workstation or cluster.
#Mac os docker images location full#
It is a lighter-weight solution and allows for much better OS X integration when compared to running OpenFOAM from a full Linux virtual machine in OS X. This is easier to install than native OS X OpenFOAM, and provides an environment that is very similar to that on workstations and clusters. This can be run on a Mac (from the OS X terminal), with the user’s OpenFOAM files readily shared from a folder in OS X (so we can still browse and edit them using our favourite OS X tools).

In summary the idea is to basically have a Docker container which essentially has OpenSUSE (as on my workstation) with all the OpenFOAM dependencies and the basic OpenFOAM install.
#Mac os docker images location mac os x#
A Mac OS X of23x Development Environment Using Docker - CFD Online Discussion Forums
