Docker Wrappers
Overview
The PACSIFIER package includes convenient Docker wrapper scripts that allow users to run CLI commands via Docker without needing to remember complex docker run command syntax. These wrappers handle volume mounting and Docker configuration automatically.
Available Wrapper Scripts
The following Docker wrapper scripts are available:
docker_pacsifier: Docker wrapper for the mainpacsifiercommanddocker_get_pseudonyms: Docker wrapper forpacsifier-get-pseudonymsdocker_add_karnak_tags: Docker wrapper forpacsifier-add-karnak-tagsdocker_anonymize_dicoms: Docker wrapper forpacsifier-anonymizedocker_extract_carestream_report: Docker wrapper forpacsifier-extract-carestream-reportdocker_move_dumps: Docker wrapper forpacsifier-move-csvdocker_create_dicomdir: Docker wrapper forpacsifier-create-dicomdir
Configuration
Docker Image Selection
By default, the wrapper scripts use the pacsifier:latest Docker image. You can override this in two ways:
Set the
PACSIFIER_DOCKER_IMAGEenvironment variable:
export PACSIFIER_DOCKER_IMAGE=pacsifier:1.0.0
Use the
--imageflag with each command:
docker_pacsifier --image pacsifier:1.0.0 -c config.json -i -q query.csv -d /output --save
Usage Examples
docker_pacsifier
Run the main PACSIFIER command:
docker_pacsifier -c config.json -i -s -q query.csv -d /output
Resume an interrupted extraction:
docker_pacsifier -c config.json -q query.csv -d /output --save --resume
docker_get_pseudonyms
Get pseudonyms for DICOM data:
docker_get_pseudonyms --mode de-id -c config.json -q query.csv -a ProjectName -d /output
docker_anonymize_dicoms
Anonymize DICOM files:
docker_anonymize_dicoms -d /path/to/input -o /path/to/output -i -p -a
docker_extract_carestream_report
Extract Carestream reports:
docker_extract_carestream_report -d /path/to/data
docker_move_dumps
Move CSV dump files:
docker_move_dumps -d /path/to/dicom -o /path/to/info
docker_create_dicomdir
Create a DICOMDIR file:
docker_create_dicomdir -d /path/to/input -o /path/to/output
How It Works
Volume Mounting
The wrapper scripts automatically handle Docker volume mounting. When you provide file or directory paths as arguments, the scripts:
Convert the paths to absolute paths
Mount them as Docker volumes at standardized container paths
Pass the container paths to the PACSIFIER CLI commands
For example, when you run:
docker_pacsifier -c /home/user/config.json -q /home/user/query.csv -d /home/user/output --save
The wrapper script:
Mounts
/home/user/config.jsonas/config.jsonin the containerMounts
/home/user/query.csvas/query.csvin the containerMounts
/home/user/outputas/outputin the containerRuns
pacsifier -c /config.json -q /query.csv -d /output --saveinside the container
Network Configuration
By default, the wrapper scripts use --net=host to allow the containerized PACSIFIER to communicate with PACS servers on the host network.
Troubleshooting
Docker Not Found
If you see an error message stating “Docker not found”, ensure that:
Docker is installed on your system
Docker is in your system PATH
You have the necessary permissions to run Docker commands
Image Not Found
If the Docker image is not found, you may need to:
Build the PACSIFIER Docker image first
Specify the correct image name using the
--imageflag orPACSIFIER_DOCKER_IMAGEenvironment variable
See Also
Commandline Usage - Command-line usage documentation
Installation Instructions - Installation instructions including Docker setup