PiNS / DOCKER_SETUP.md
ft42's picture
Upload 4 files
f6b0f0b verified

Docker Setup Instructions

If you need to build the Docker image from scratch:

  1. Create the Dockerfile (copy from Dockerfile.example):

    cp Dockerfile.example Dockerfile
    
  2. Build the Docker image:

    docker build -t medical-imaging/nodule-segmentation:latest .
    
  3. Verify the image was created:

    docker images | grep medical-imaging
    

If the image already exists:

You can check if it exists with:

docker images | grep medical-imaging/nodule-segmentation

If it shows the image, you can directly run the main script:

./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:

docker rm -f nodule_seg_pipeline

To see running containers:

docker ps

To see all containers (including stopped):

docker ps -a