To get started, follow these two steps:
Install Docker for your platform by following these instructions. Windows users must continue to use the Docker Toolbox, not Docker for Windows, if they wish to use the FEniCS Docker script described below.
Install the FEniCS Docker script:
curl -s https://get.fenicsproject.org | bash
If using the Docker Toolbox (macOS versions < 10.10 or Windows versions < 10), make sure you run this and other commands inside the Docker Quickstart Terminal.
Not working? Try the Troubleshooting section.
Once both Docker and the FEniCS Docker script have been installed, you can easily start a FEniCS session by running the following command:
The FEniCS Docker script can also be used to create persistent
fenicsproject create myproject followed by
fenicsproject run myproject) or to run different versions of
fenicsproject run dev).
fenicsproject commands, the contents of the current
directory will be shared into the project at
Only folders under
C:\Users on Windows and
macOS can be shared into a project. On Linux there are no
We strongly advise against sharing your entire home
directory into a project, i.e. running
/Users/<username>. Make a logical folder for each
To see more options, run the following command:
The above instructions will get you quickly up and running with FEniCS
in Docker. We recommend continuing to the Introduction if you
want to learn more about using the
docker command for greater
control over running FEniCS in a container.