- Install Docker for Windows (for Windows 10) or Docker Toolbox (for Windows 7/8). Read this for details.
- Open Docker Quickstart Terminal (under Start Menu -> Docker Folder).
- Run
docker pull dreal/dreal3to install the latest version of dReal. - Run
docker run --rm dreal/dreal3 dReal --versionto check it's properly installed. - We need to provide a way to pass a file in a Windows file system to dReal which is running inside of a VM (virtual machine).
- Consider an examplary scenario where we have a project directory
/c/Users/soonhok/project_dirand there istest.smt2file in the directory. - Run
docker run --rm -v /c/Users/soonhok/project_dir:/tmp dreal/dreal3 dReal /tmp/test.smt2 - The above command mounts
/c/Users/soonhok/project_dirdirectory as/tmpinside of a VM. Then it executesdReal /tmp/test.smt2inside of the VM.
- Consider an examplary scenario where we have a project directory