You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- update of Singularity from [v2.4](https://github.com/singularityware/docker2singularity/tree/v2.4) to [v2.5](https://github.com/singularityware/docker2singularity/tree/v2.5), including adding libarchive dependency (v2.5)
Copy file name to clipboardExpand all lines: README.md
+30-5Lines changed: 30 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ If you want a legacy version, see the following other branches:
42
42
43
43
-[v2.3](https://github.com/singularityware/docker2singularity/tree/v2.3): Version 2.3 of Singularity. The image format is ext3.
44
44
-[v2.4](https://github.com/singularityware/docker2singularity/tree/v2.4): Version 2.4 of Singularity. The default image format is squashfs.
45
+
-[v2.5](https://github.com/singularityware/docker2singularity/tree/v2.5): Version 2.5.1 of Singularity. Same as 2.4 but with many bug fixes.
45
46
46
47
Intermediate versions built on [Docker Hub](https://hub.docker.com/r/singularityware/docker2singularity/tags/). A tag with prefix `v` corresponds to a release of the Singularity software, while the others are in reference to releases of Docker.
47
48
@@ -55,11 +56,19 @@ Intermediate versions built on [Docker Hub](https://hub.docker.com/r/singularity
55
56
## Build a Squashfs Image
56
57
Squashfs is the recommended image type, it is compressed and less prone to degradation over time. You don't need to specify anything special to create it:
57
58
59
+
This is a path on my host, the image will be written here
60
+
61
+
```bash
62
+
$ mkdir -p /tmp/test
58
63
```
64
+
65
+
And here is the command to run. Notice that I am mounting the path `/tmp/test` that I created above to `/output` in the container, where the container image will be written (and seen on my host).
66
+
67
+
```bash
59
68
docker run -v /var/run/docker.sock:/var/run/docker.sock \
60
-
-v /host/path/change/me:/output \
69
+
-v /tmp/test:/output \
61
70
--privileged -t --rm \
62
-
singularityware/docker2singularity
71
+
singularityware/docker2singularity \
63
72
ubuntu:14.04
64
73
65
74
Image Format: squashfs
@@ -83,10 +92,26 @@ Cleaning up...
83
92
Final Size: 60MB
84
93
```
85
94
86
-
Notice how the image went from 188MB to 60MB? This reduction is even more impressive when we are dealing with
87
-
very large images (e.g., ~3600 down to ~1800). A few notes on the inputs shown above that you should edit:
Take a look again at the generation code above, and notice how the image went from 188MB to 60MB?
112
+
This is one of the great things about the squashfs filesystem! This reduction is even more impressive when we are dealing with very large images (e.g., ~3600 down to ~1800). A few notes on the inputs shown above that you should edit:
88
113
89
-
-`/host/path/change/me`: the path you want to have the final image reside. If you are on windows this might look like `D:\host\path\where\to\output\singularity\image`.
114
+
-`/tmp/test`: the path you want to have the final image reside. If you are on windows this might look like `D:\host\path\where\to\output\singularity\image`.
90
115
-`ubuntu:14.04`: the docker image name you wish to convert (it will be pulled from Docker Hub if it does not exist on your host system).
91
116
92
117
`docker2singularity` uses the Docker daemon located on the host system. It will access the Docker image cache from the host system avoiding having to redownload images that are already present locally.
0 commit comments