File size: 1,075 Bytes
f6b0f0b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# 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
``` |