-
Notifications
You must be signed in to change notification settings - Fork 8
Installation on Windows (Docker)
This guide shows how to install PySB on Windows using Docker.
Follow the Windows installation instructions for Docker. Please check that the Docker "Hello World" program runs before continuing with this guide.
Run the "Boot2Docker Start" shortcut from your Desktop or Program Files -> Boot2Docker for Windows. The Start script will ask you to enter a passphrase - either enter a password or just press enter to leave this blank.
A terminal/command line should appear. Type in the following command:
docker version
You should see a bunch of version numbers appear. This means Docker is now running.
Further assistance is available on the Docker documentation.
You can install the PySB Docker container using the following command:
docker pull lolab/pysb
Replace the pathname after -v with the path on your laptop where you want to store your PySB models and related code. You can change the password in the quotation marks to a custom setting if you like.
docker run -d -p 443:8888 -e "PASSWORD=MyPassword" \
-v C:\\Users\\alex\\Desktop\\notebooks:/notebooks --name pysb1 lolab/pysb
In the command line, first get the IP address of the Docker container by typing the following command. Make a note of the output.
boot2docker ip
Copy the output (e.g. 11.22.33.44) to the clipboard. In your web browser, type in the address bar 'https://' then paste the output, e.g. 'https://11.22.33.44'