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 -dOpen http://localhost:8042 and sign in with user orthanc and password orthanc.
Download the test study
docker compose run --rm downloadIt 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 uploadUpload 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 downYour 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.
| Part | What it does | Where |
|---|---|---|
| Orthanc | Receives DICOM images, stores them, and indexes them | localhost:4242, AE title ORTHANC |
| Orthanc Explorer 2 | The web interface. The REST API uses the same port | localhost:8042 |
| OHIF and Stone Web Viewer | Show the images in the browser | The 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 see | What to do |
|---|---|
docker is not recognized, or command not found | Install Docker, then open a new terminal. |
no configuration file provided: not found | The terminal is not in the lab folder. Open it in the folder with compose.yaml. |
Cannot connect to the Docker daemon | Start Docker Desktop and wait until the engine is running. On Linux, start the Docker service. |
| "Virtualization support not detected" in Docker Desktop on Windows | WSL is not on yet. Run wsl --install --no-distribution in a terminal opened as administrator, then restart the computer. |
port is already allocated | Another 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 upload | Run the download first. |
| The volume rendering views stay black | The graphics chip or its driver is too old for the 3D views. Update the driver. The stack view still works. |
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.
