Are there commands like dcmsnd & dcmrcv commands in dockerized version?

252 views
Skip to first unread message

LeoGut

unread,
Jan 7, 2020, 5:00:08 PM1/7/20
to dcm4che
Hello,

until recently to retrieve or upload images on DCM4CHEEx2, I used something like following commands on Windows: (dcm4che-2.0.29 tool package)

dcmsnd hostname@host:11112 <directory_with_DICOM_files>
and
dcmrcv DCM4CHEE:11112 -dest <destination_folder's_path>

Now I use Ubuntu, I have been using the dockerized version of dcm4chee-arc-light and would like to use similar commands with the current tools.

I need help to install the required tools (i'm not sure if they come with the container images) and also need to learn the right commands to perform simple tasks like down/upload DICOM files (storescu??) or transfer files among servers (movescu??).

I figured out how to do some of those tasks using the User-Interface, now I need to learn how to use the command line for that.


Thanks.



Gunter Zeilinger

unread,
Jan 8, 2020, 3:48:12 AM1/8/20
to dcm...@googlegroups.com

You may install it natively by unzipping the binary distribution package or use the dockerized version: dcm4che/dcm4che-tool


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

LeoGut

unread,
Jan 8, 2020, 8:35:01 AM1/8/20
to dcm4che
Thanks for the reply!

I did a:
$ docker pull dcm4che/dcm4che-tools:latest

and now using:
$ docker run <storescu/storescp commands>

It feels like I'm getting there! (need to set a few more things before the final tests)

LeoGut

unread,
Jan 9, 2020, 10:05:34 AM1/9/20
to dcm...@googlegroups.com
So, this is what I did to test STORESCP with binary distribution package:

1) Downloaded and extracted the zip file (dcm4che-5.20.0) and went to the folder: ~/dcm4che-5.20.0/bin

2) Configured JAVA_HOME to ensure it followed the right path:
$ sudo update-alternatives --config java
$ sudo vim /etc/environment
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre"     (in my case had to remove "/bin/java" at the end of the path)

3) Run the command: 
$ sudo ./storescp -b DCM4CHEE104:11112
*my AET is DCM4CHEE104

4) Tried echo from a DCMserver:
=======================================================
||-------------------------------------- Echo result: --------------------------------------||
||--Echo dicom://DCM4C...@120.24.52.120:11112 successfully!--||
=======================================================

------------------------------------------------------------------------------------------------------------------------------

When trying to use the dockerized version dcm4che/dcm4che-tool:

1) Downloaded the image:
$ docker pull dcm4che/dcm4che-tools:latest

2) Tried thes same command from above, but starting with docker run:
$ docker run dcm4che/dcm4che-tools storescp -b DCM4CHEE104:11112
14:56:34,156 INFO  - Start TCP Listener on 0.0.0.0/0.0.0.0:11112

... but this time, the Echo command failed:
Echodicom://DCM4CHEE104@120.24.52.120:11112 failed: java.net.ConnectException: Connection refused

Any suggestions?

Thanks!

Gunter Zeilinger

unread,
Jan 9, 2020, 10:21:52 AM1/9/20
to dcm...@googlegroups.com
You have to publish port 11112 from the container to your host by -p 11112:11112.

Also, for sending files with the dockerized version, you have to bind mount the host directory into the container by -v <host-dir>:<mount-point-in-container>, so they are accessible by storescu inside the container.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, January 9, 2020 4:05 PM, LeoGut <leo...@gmail.com> wrote:

So, this is what I did to test STORESCP with binary distribution package:

1) Downloaded and extracted the zip file (dcm4che-5.20.0) and went to the folder: ~/dcm4che-5.20.0/bin

2) Configured JAVA_HOME to ensure it followed the right path:
$ sudo update-alternatives --config java
$ sudo vim /etc/environment
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre"     (in my case had to remove "/bin/java" at the end of the path)

3) Run the command: 
$ sudo ./storescp -b DCM4CHEE104:11112
*my AET is DCM4CHEE104

4) Tried echo from a DCMserver:
=======================================================
||-------------------------------------- Echo result: --------------------------------------||
||--Echo dicom://DCM4C...@120.24.52.120:11112 successfully!--||
=======================================================

------------------------------------------------------------------------------------------------------------------------------

When trying to use the dockerized version: dcm4che/e-tool:

1) Downloaded the image:
$ docker pull dcm4che/dcm4che-tools:latest

2) Tried thes same command from above, but starting with docker run:
$ docker run dcm4che/dcm4che-tools storescp -b DCM4CHEE104:11112
14:56:34,156 INFO  - Start TCP Listener on 0.0.0.0/0.0.0.0:11112

... but this time, the Echo command failed:
Echodicom://DCM4C...@143.54.220.104:11112 failed: java.net.ConnectException: Connection refused

Any suggestions?

Thanks!


Em quarta-feira, 8 de janeiro de 2020 10:35:01 UTC-3, LeoGut escreveu:
Thanks for the reply!

I did a:
$ docker pull dcm4che/dcm4che-tools:latest
and now using:
$ docker run <storescu/storescp commands>

It feels like I'm getting there! (need to set a few more things before the final tests)
--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

LeoGut

unread,
Jan 9, 2020, 11:53:05 AM1/9/20
to dcm4che
Oh, right!

It worked now, thanks again!


Em quinta-feira, 9 de janeiro de 2020 12:21:52 UTC-3, gunterze escreveu:
You have to publish port 11112 from the container to your host by -p 11112:11112.

Also, for sending files with the dockerized version, you have to bind mount the host directory into the container by -v <host-dir>:<mount-point-in-container>, so they are accessible by storescu inside the container.
... 
Reply all
Reply to author
Forward
0 new messages