Docker Desktop Mount Issue


I am using Docker Desktop on Windows 11, and I have executed the following command in the command prompt terminal:

docker run -p 4242:4242 -p 8042:8042 -v "D:/Orthanc:/var/lib/orthanc/db" -v "D:/Config/orthanc.json:/etc/orthanc/orthanc.json:ro" osimis/orthanc

However, when I upload studies of approximately 2GB in size, I notice that the data is being stored in both the external path (D:/Orthanc) outside the container and the internal path (/var/lib/orthanc/db) inside the container. Upon checking, I found that the size of the /var/lib/orthanc/db folder is 2GB also. I would like the data to be stored only in the external path.

The relevant paths in the configuration file are:

"StorageDirectory": "/var/lib/orthanc/db", "IndexDirectory": "/var/lib/orthanc/db"

Could someone please assist me with this issue?


Please read the Docker documentation about volumes and you’ll understand that it’s a mapping and the file is only stored once.

Thanks for your reply, @alainmazy I will go through the documentation.

Hi @alainmazy ,

I have observed another detail in the log file: "REST API cannot write to the file system." Could you please explain the significance of this message and how it might impact the Docker container?



I just clarified that log message to

REST API cannot write to the file system bacause the “RestApiWriteToFileSystemEnabled” configuration is set to false. The URI /instances/…/export is disabled. This is the most secure configuration.



Thank you for your response.