@@ -8,15 +8,28 @@ An efficient Docker image transfer system that extracts and merges necessary ima
88
99** Step 2** : You can use DockerSlice in two ways:
1010
11- 1 . ** Share a Common Base Image:**
11+ A . ** Share a Common Base Image:**
1212
13- - Push the [ base images] ( #docker-base-images ) to both servers.
14- - Build custom images on top of the shared base images (e.g., ` FROM junwha/dslice-base-torch:py3.10-torch2.4.1 ` at the top of the Dockerfile).
15- - Save the above layers as a tar.gz file (` dslice save <image tag> ` => <image tag >.tar.gz will be created)
16- - Transfer only the new layers above the base, minimizing data transfer.
17- - Load the tar.gz file at the offline server (` dslice load <image.tag>.tar.gz ` )
13+ 1 . Push the [ base images] ( #docker-base-images ) to both servers.
1814
19- 2 . ** Partial Updates:**
15+ ` dslice push junwha/dslice-base-torch:py3.10-torch2.4.1 `
16+
17+ 3 . Build custom images on top of the shared base images.
18+
19+ Start with ` FROM junwha/dslice-base-torch:py3.10-torch2.4.1 ` at the top of the Dockerfile
20+
21+ ` docker build -t <TAG> ./ `
22+
23+ 4 . Save the above layers as a tar.gz file
24+
25+ ` dslice save <TAG> ` (` <TAG>.tar.gz ` will be created)
26+
27+ 5 . Transfer only the new layers (` <TAG>.tar.gz ` ) above the base, minimizing data transfer.
28+ 6 . Load the tar.gz file at the offline server
29+
30+ ` dslice load <TAG>.tar.gz `
31+
32+ B. ** Partial Updates:**
2033
2134- When a Docker image on the offline server needs an update, make an update on the image online (e.g., install a package).
2235- Then, move only the updated layers to the offline server.
0 commit comments