File size: 1,527 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Docker Image Export/Import Instructions

## 1. Save Docker Image to File

After the build completes, save the image as a .tar file:

```bash
cd /data/usr/ft42/CVIT_XAI/LungRADS_Modeling/CLARITY/PiNS
docker save medical-imaging/nodule-segmentation:latest -o medical-imaging-nodule-segmentation.tar
```

## 2. Compress the Image (Optional - Recommended)

Compress the .tar file to save space:

```bash
gzip medical-imaging-nodule-segmentation.tar
# This creates: medical-imaging-nodule-segmentation.tar.gz
```

## 3. Check File Size

```bash
ls -lh medical-imaging-nodule-segmentation.tar*
```

## 4. Load Image on Another Machine

To use the saved image on another machine:

```bash
# If compressed:
gunzip medical-imaging-nodule-segmentation.tar.gz

# Load the image:
docker load -i medical-imaging-nodule-segmentation.tar

# Verify it loaded:
docker images | grep medical-imaging
```

## 5. Share the Image

You can now share the .tar.gz file:
- Copy to USB drive
- Upload to cloud storage
- Transfer via network
- Include in project distribution

## File Size Expectations

- Uncompressed .tar: ~1.5-2.0 GB
- Compressed .tar.gz: ~800MB-1.2GB

## Alternative: Docker Hub (Optional)

You can also push to Docker Hub for easy sharing:

```bash
# Tag the image
docker tag medical-imaging/nodule-segmentation:latest ft42/nodule-segmentation:latest

# Push to Docker Hub
docker push ft42/nodule-segmentation:latest
```

## Usage After Import

Once loaded, use exactly as before:
```bash
./scripts/DLCS24_KNN_2mm_Extend_Seg.sh
```