Looking for basic help. Docker newbie here.

Hi all,
this is probably basic to most of you guys. but Im newb trying to learn how to setup orthanc via docker on a synology NAS.
I ve had basic experience setting up docker on a windows 10 PC.
and
ive manage to install docker and orthanc for docker on the NAs.

I would want to access the “orthanc.json” file but its no where to be found.

At this page, https://book.orthanc-server.com/users/docker.html ,

Im trying to make sense where do i type this into?

$ docker run --rm --entrypoint=cat jodogne/orthanc /etc/orthanc/orthanc.json > /tmp/orthanc.json

I may likely need basic step by step to here. If anyone has the spare time, please guide me through. I really appreciate the help.

Thanks in advance

Hello,

The command you copied is just a way to retrieve the default configuration file of Orthanc, and write it to “/tmp/orthanc.json”. This is a command to be run from a command-line terminal.

If you don’t have access to such a terminal, you can obtain this default configuration at the following place:
https://book.orthanc-server.com/users/configuration.html
https://hg.orthanc-server.com/orthanc/file/Orthanc-1.9.5/OrthancServer/Resources/Configuration.json

HTH,
Sébastien-

Thanks Sébastien for the prompt reply,

Unfortunately I might need a little bit more basic guide.
I have configured an orthanc.json before in windows by using notepad+ by using windows explorer to enter find the configuration file for orthanc.
But in NAS, this directory appears no where to be found? Am i not able access it directly from the NAS?

Thanks :slight_smile:

Hi,

I don’t have a NAS at hand so just speaking out of my head:

It’s actually up to you to provide this orthanc.json file. You should start with a very simple one with only a few options:{
“RemoteAccessAllowed”: true,
“AuthenticationEnabled” : true,
“RegisteredUsers” : {
“orthanc”: “orthanc”
}
}

Save this file on your NAS, let’s say in /data/orthanc/orthanc.json
Then, you can start Orthanc with something like:

docker run -p 4242:4242 -p 8042:8042 --rm -v /data/orthanc/orthanc.json:/etc/orthanc/orthanc.json:ro jodogne/orthanc

But, before going any further, I strongly advise you to have a good understanding of Docker and data persistence (volumes) in Docker. With the above commands, your data won’t persist on your NAS, you’ll have to map /var/lib/orthanc/db/ to one of your NAS folder with the -v option.

HTH

Alain

thanks for the responses.
some how manage to use commander and access root and force the conf file out… but im now having an issue with ip. docker seems to be trying to send files out using a 172.17.0.1 ip? which i believe is a docker internal ip. there fore when retrieving, instead of sending it to 192.168.1.2, it tries to send to 172.17.0.1? anyway to go around this?

Sorry but I’m afraid there’s not enough information for us to understand your issue (which seems BTW, very Docker related and not really Orthanc related).

Note that there are plenty of resources to learn to use Orthanc with Docker here: https://bitbucket.org/osimis/orthanc-setup-samples/src/master/

agreed, I was just hoping someone who uses docker with orthanc may have known a way to overcome this.

thanks again Alain.
i appreciate it.

I am trying to prepare a quide for setting up orthanc, postgre, pdadmin and orthanc tools on a synology nas through docker the last two months but i am on 80%
For me is just a hobby as my actual job is orthopaedic surgeon.
This setup is working very well for me

U can modify my settings json file and import it through synology Docker GUI in your container (import settings)
U can download latest
https://hg.orthanc-server.com/orthanc/file/Orthanc-1.9.5/OrthancServer/Resources/Configuration.json

and modify it
Create a permanent folder on synology and place the configuration or configuration file, in my example /docker/orthanc

This part is the where u set up mount point for configuration
In orthanc book you can find several ways setting up the orthanc docker container but i found that this the most easy in the synology nas

“volume_bindings” : [
{
“host_volume_file” : “/docker/Orthanc”,
“mount_point” : “/etc/orthanc”,
“type” : “rw”
},
{
“host_volume_file” : “/homes/admin/Drive/Orthanc”,
“mount_point” : “/orthancstorage”,
“type” : “rw”
}
]

If u need more help u r welcome

many thanks,

Kyriakos

Στις Παρασκευή, 9 Ιουλίου 2021 στις 5:01:32 μ.μ. UTC+3, ο χρήστης Tee έγραψε:

osimis-orthanc1 (4).json (2.61 KB)

Thank you very much Kyriakos,

Im actually a radiologist in a public hospital. Due to budget constraints, we are left with “scraps” to form a temporary PACS.
Sadly, any IT assistance will cost us now.

These may sound basic but… May i know where do i copy and paste these text?

“volume_bindings” : [
{
“host_volume_file” : “/docker/Orthanc”,
“mount_point” : “/etc/orthanc”,
“type” : “rw”
},
{
“host_volume_file” : “/homes/admin/Drive/Orthanc”,
“mount_point” : “/orthancstorage”,
“type” : “rw”
}
]

Hi all,

I thought this would be a good thread to share how my team deploys Orthanc securely (with NGINX) using docker compose.

Of course you don’t need compose to deploy it, but it gives a good reference for passing in the right values for deploying with docker.
If you are unfamiliar with docker compose, the manifest below is essentially a playbook for executing docker run with pre-defined arguments.

I’d look to the command line refernece to translate the compose variables to the docker run command, or just become familiar with compose, it’s really friendly.

https://docs.docker.com/engine/reference/commandline/run/
https://docs.docker.com/compose/

Here is our compose file: