Build a Force Field X Docker Container
Force Field X can be run locally within a Docker container, which includes support for using Jupyter Notebooks. First, clone the FFX source code repository from Github.
Build the Docker Container
Download and install Docker Desktop onto your local workstation.
After starting Docker Desktop, in a terminal window, change into the FFX binder directory and run the following command:
docker build --no-cache -t ffxdocker:1.0.0-beta -f Dockerfile .
Run the Container in a Terminal Window
To launch the FFX container in a terminal window, run the command:
docker run -it --rm ffxdocker:1.0.0-beta bash
Check that FFX is in your path:
which ffxc
Use Jupyter Notebooks Locally in Web Browser
To launch the FFX Jupyter notebooks in web browser, run the command:
docker run -it --rm -p 8888:8888 ffxdocker:1.0.0-beta jupyter notebook --NotebookApp.default_url=/lab/ --ip=0.0.0.0 --port=8888
Both Java and Kotlin notebooks are available.