Skip to content

Installation on Windows (Docker)

Alex Lubbock edited this page Sep 28, 2015 · 2 revisions

This guide shows how to install PySB on Windows using Docker.

Step 1: Install Docker

Follow the Windows installation instructions for Docker. Please check that the Docker "Hello World" program runs before continuing with this guide.

Step 2: Start Docker

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.

Step 3: Load the Docker image

You can install the PySB Docker container using the following command:

docker pull lolab/pysb

Step 4: Start the image

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

Step 5: Open a web browser

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'