Run Docker Container - mbarnig/RadioLogic GitHub Wiki
If you read this introduction to lesson 6 of our small RadioLogic tutorial, I hope you did not skip the first six lessons. If you are jumping in from scratch, you are still welcome because I saved my own radiologicarchive Docker image to the DockerHub. You must first install this image with the following command in the SSL terminal:
docker pull mbarnig/radiologicarchive
You can even use the graphical user interface of Docker to download the image and to configure the container without using line commands.
The regular readers don't need to download the radiologicarchive Docker image, they have it already stored in their local Docker system. The next steps are equal for everybody.
To start a container as RadioLogicArchive in interactive verbose mode, run the following command:
docker container run -it -p 8042:8042 -p 4242:4242 --name RadioLogicArchive -v /volume1/radiologicarchive/config:/orthanc/config -v /volume1/radiologicarchive/plugins:/orthanc/plugins -v /volume1/radiologicarchive/OrthancStorage:/orthanc/OrthancStorage -v /volume1/radiologicarchive/serve-folders:/orthanc/serve-folders radiologicarchive /orthanc/Orthanc --verbose /orthanc/config/

Success! The log messages shown in the terminal confirm the correct launch of the Orthanc server in the Docker container. Congratulations!
Here are some comments concerning the displayed log messages:
- the Orthanc version is mainline
- the configuration folder is scanned and 3 config files are found
- locales and encoding are defined
- custom metadata and attachments are registrated
- DCMTK version 364 with embedded dictionaries is found
- custom private tags are added to the dictionary
- image codecs are registrated
- the plugins folder is scanned and the server-folders plugin is registrated
- the SQlite database is initialized
- several configuration parameters are set
- the jobs engine is started with 4 threads
- the DICOM server is started with port 4242
- the HTTP CivetServer is started with port 8042 and configured parameters
- Orthanc has started and is ready
- the LUA engine is starting
To be really sure that the system is working, we open a browser and point to the local IP address of the diskstation (or another device where you are running Docker) with port number 8042. We should get the following webpage:

If we enter the correct credentials, we are redirected to the RadioLogicArchive homepage:

If we look at the stored patients (button All patients), we should find Mr or Mrs RADIOLOGIC^OBSERVATION^ANSWER.

This is the name of the RadioLogic template used as a temporary solution to work-around the registered issue 140 in the Orthanc core code.
For this tutorial, the temporary template allows us to get familiar with the basic concept of the RadioLogicCreator plugin which will be presented in a later chapter. The template contains one study named OBSERVATION and ANSWER with two series: ANSWER and OBSERVATION. Each series contains one instance. You can read more about this topic in the DICOM Template chapter.

Finally we check the Plugins tab to verify the content of the serve-folders.

If we click on serve-folders > mainline > we see the HTML content served by RadioLogicArchive.

By opening the folder radiologic we should find the following files:
- css/welcome.css
- images/logo.jpg
- js/welcome.js
- welcome.html

If you click the welcome.html link the RadioLogic animation will be displayed. Use the mouse to disturb the bullets.
So far everything works as expected. Yuppy!
The next three lessons are optional. You will learn how to access your Docker container from Internet in a secure way and how to install an SSL certificate. Please go to the lessons 7 (Internet Access) and 8 (Security & SSL) if you are interested in these topics. Lesson 9 explains how to add a WiFi USB-tick to the diskstation.
If you prefer to dive promptly into the plugin development, jump swiftly to lesson 10 (NanoPlugin).