Installing OpenMRSLab

Step 1. Download and Install Docker

Mac

  1. Download and install Docker Desktop for Mac.

Windows

  1. Download and install Docker Desktop for Windows.

Step 2. Pull OpenMRSLab Image from Docker Hub

  1. In Terminal (Mac and Linux) or Command Prompt (Windows), enter the command: docker pull openmrslab/openmrslab.
    docker pull screenshot
  2. (Optional) Confirm that the OpenMRSLab image has been downloaded by entering the command: docker image ls.
    docker image ls screenshot
    • openmrslab/openmrslab should be listed under the REPOSITORY column.

Step 3. Run and Access OpenMRSLab Container

  1. To create a container from the OpenMRSLab image and start it on your machine, open Terminal and enter the command: docker run -p 8888:8888 -v [PATH TO DATA]:/home/jovyan/work openmrslab/openmrslab.
    docker run screenshot
    • The -p option specifies that the container will run on port 8888 within the container and be accessible from port 8888 on your machine.
    • The -v option maps a drive on your computer to the /home/jovyan/work directory in the container, which is the root directory. Replace [PATH TO DATA] with the absolute path to your directory (do not use a relative path). This is usually the directory that contains the data you want to process and will be where the resulting Jupyter Notebook is saved.
  2. Access the Jupyter Notebook.
    Jupyter screenshot
    • Access the notebook by copying and pasting the last URL in the terminal output (e.g. http://127.0.0.1:8888/?token=9a9...e06) into a browser, or by going to http://localhost:8888/ and entering the generated token.
    • A new token is generated each time you start a container so make sure you take note of the new key/URLs in the Terminal output. The token can be found in the listed urls, indicated by ?token=.