Skip to content

Installation on Linux (Docker)

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

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

Step 1: Install Docker

If you are using Ubuntu, Docker can be installed using apt:

sudo apt-get install docker.io

Other Linux distributions will often have Docker available using their package manager (e.g. yum). If in doubt, follow the Linux installation instructions on the Docker website.

Step 2: Start Docker

Docker usually starts automatically on most Linux installations. If the command docker version does not work, 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 /home/alex/Desktop/notebooks:/notebooks --name pysb1 lolab/pysb

Step 5: Open a web browser

In your web browser, navigate to https://localhost