# Docker Setup Instructions ## If you need to build the Docker image from scratch: 1. **Create the Dockerfile** (copy from `Dockerfile.example`): ```bash cp Dockerfile.example Dockerfile ``` 2. **Build the Docker image**: ```bash docker build -t medical-imaging/nodule-segmentation:latest . ``` 3. **Verify the image was created**: ```bash docker images | grep medical-imaging ``` ## If the image already exists: You can check if it exists with: ```bash docker images | grep medical-imaging/nodule-segmentation ``` If it shows the image, you can directly run the main script: ```bash ./scripts/DLCS24_KNN_2mm_Extend_Seg.sh ``` ## Container Management The script automatically: - Removes any existing container with the same name - Creates a new container - Runs the segmentation pipeline - Keeps the container running for potential debugging To manually clean up containers: ```bash docker rm -f nodule_seg_pipeline ``` To see running containers: ```bash docker ps ``` To see all containers (including stopped): ```bash docker ps -a ```