polyseminar

Home / Video labs / CIIP

Free PACS on your laptop

You start Orthanc, an open-source DICOM server, in Docker on your own computer, load a public, de-identified CT study into it, and open the study in a web viewer.

Playing loads the video from YouTube, which then receives your IP address and may store data on your device. See the privacy notice, or watch on YouTube.

Get the lab files on GitHub →

Published

Never load real patient data, including your own scans.

What you will do

  • Start a PACS with a web interface, a REST API, and a DICOM port.
  • Load 422 CT images and see how they divide into one patient, two studies, and two series.
  • Open a study in the OHIF viewer, as a stack of slices and in volume rendering mode.
  • Read the tags of one image, down to the one that says the patient's identity was removed.

What you need

  • Docker: Docker Desktop on Windows 11 or macOS, or Docker Engine with the Compose plugin on Linux. Docker Desktop is free for personal use, education, and small businesses, and larger organizations need a paid subscription, so ask your IT team before you install it on a work computer.
  • At least 8 GB of RAM and about 4 GB of free disk space.

The commands

Start Docker, then run them in the lab folder, where compose.yaml is. They work the same in PowerShell, Command Prompt, macOS Terminal, and Linux shells. For full install steps, see the README.

Start the PACS

docker compose up -d

Open http://localhost:8042 and sign in with user orthanc and password orthanc.

Download the test study

docker compose run --rm download

It ends with a list of folders: one collection, one patient, two studies, and one series in each study.

Send the study to the PACS

docker compose run --rm upload
Upload finished (HTTP 200)

Refresh the browser. The study list shows two studies for patient PAN_03. Open one and click a viewer button.

Stop the PACS

docker compose down

Your images stay. Add -v to delete the images stored in the PACS as well.

What runs on your computer

Both ports are bound to 127.0.0.1, so only this computer can reach them. That is the only reason the orthanc password is acceptable. Do not expose this lab to a network.

PartWhat it doesWhere
OrthancReceives DICOM images, stores them, and indexes themlocalhost:4242, AE title ORTHANC
Orthanc Explorer 2The web interface. The REST API uses the same portlocalhost:8042
OHIF and Stone Web ViewerShow the images in the browserThe viewer buttons on a study

The test data

The study is patient PAN_03 from the CTpred-Sunitinib-panNET collection of The Cancer Imaging Archive: two contrast-enhanced abdominal CT studies with 422 images in total, shared under CC BY 4.0. The files carry Patient Identity Removed = YES, and their dates were shifted on purpose, with the intervals between them kept.

If it doesn't start

What you seeWhat to do
docker is not recognized, or command not foundInstall Docker, then open a new terminal.
no configuration file provided: not foundThe terminal is not in the lab folder. Open it in the folder with compose.yaml.
Cannot connect to the Docker daemonStart Docker Desktop and wait until the engine is running. On Linux, start the Docker service.
"Virtualization support not detected" in Docker Desktop on WindowsWSL is not on yet. Run wsl --install --no-distribution in a terminal opened as administrator, then restart the computer.
port is already allocatedAnother program uses port 8042 or 4242. Stop it, or change the first number in the ports line of compose.yaml.
error encountered when reading a file from the uploadRun the download first.
The volume rendering views stay blackThe graphics chip or its driver is too old for the 3D views. Update the driver. The stack view still works.

Next lab: Send DICOM to a PACS →

Sources: Orthanc; Chen, L., et al. (2022). CTpred-Sunitinib-panNET. The Cancer Imaging Archive; Docker Desktop license terms. Polyseminar is an independent publisher. See the independence notice.