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.5](https://github.com/singularityware/docker2singularity/tree/v2.5) to [v2.6](https://github.com/singularityware/docker2singularity/tree/v2.6), including adding libarchive dependency, and custom name with -n (v2.6)
19
-
- 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, and custom name with -n (v2.5)
20
+
- addition of automated builds via CircleCI, and Authors.md (v2.5)
21
+
- 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, and custom name with -n
Copy file name to clipboardExpand all lines: README.md
+32-10Lines changed: 32 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,22 @@
1
1
# `docker2singularity`
2
2
3
-
Are you developing Docker images and you would like to run them on an HPC cluster supporting [Singularity](http://singularity.lbl.gov)? Are you working on Mac or Windows with no easy access to a Linux machine? If the pull, import, and general commands to [work with docker images provided by Singularity](http://singularity.lbl.gov/docs-docker) natively do not fit your needs, `docker2singularity` is an alternative way to generate Singularity images. This particular branch is intended for Singularity 2.4, which gives you a selection of image formats to build.
Are you working on Mac or Windows with no easy access to a Linux machine? If the pull,
11
+
build, and general commands to [work with docker images provided by Singularity](https://www.sylabs.io/guides/2.5.1/user-guide/singularity_and_docker.html?highlight=docker) natively do not fit your needs,
12
+
`docker2singularity` is an alternative way to generate Singularity images.
13
+
This particular branch is intended for Singularity 2.5.1, which gives you a selection of image formats to build.
14
+
The containers are also available for you on [Docker Hub](https://hub.docker.com/r/singularityware/docker2singularity/).
A sandbox image is a folder that is ideal for development. You can view it on your desktop, cd inside and browse, and it works like a Singularity image. To create a sandbox, specify the `-f` flag:
180
191
181
-
```
192
+
```bash
182
193
docker run -v /var/run/docker.sock:/var/run/docker.sock \
183
194
-v /host/path/change/me:/output \
184
195
--privileged -t --rm \
@@ -188,14 +199,14 @@ ubuntu:14.04
188
199
```
189
200
Importantly, you can use `--writable`, and if needed, you can convert a sandbox folder into a production image:
190
201
191
-
```
202
+
```bash
192
203
sudo singularity build sandbox/ production.simg
193
204
```
194
205
195
206
## Build a Legacy (ext3) Image
196
207
You can build a legacy ext3 image (with `--writable`) with the `-w` flag. This is an older image format that is more prone to degradation over time, and (building) may not be supported for future versions of the software.
197
208
198
-
```
209
+
```bash
199
210
docker run -v /var/run/docker.sock:/var/run/docker.sock \
200
211
-v /host/path/change/me:/output \
201
212
--privileged -t --rm \
@@ -205,9 +216,10 @@ ubuntu:14.04
205
216
```
206
217
You can also use `--writable` and convert an ext3 image into a production image:
207
218
208
-
```
219
+
```bash
209
220
sudo singularity build ext3.img production.simg
210
221
```
222
+
211
223
### Contributed Examples
212
224
The following are a list of brief examples and tutorials generated by the Singularity community for using **docker2singularity**. If you have an example of your own, please [let us know](https://www.github.com/singularityware/docker2singularity/issues)!
213
225
@@ -226,32 +238,42 @@ The following are a list of brief examples and tutorials generated by the Singul
226
238
- Don’t use the USER instruction set
227
239
228
240
## FAQ
241
+
Here are some frequently asked questions if you run into trouble!
242
+
229
243
### "client is newer than server" error
230
244
If you are getting the following error:
231
245
`docker: Error response from daemon: client is newer than server`
232
246
233
247
You need to use the `docker info` command to check your docker version and use it to grab the correct corresponding version of `docker2singularity`. For example:
Currently only the 1.10, 1.11, 1.12, and 1.13 versions are supported. If you are using an older version of Docker you will need to upgrade.
243
259
244
260
245
261
### My cluster/HPC requires Singularity images to include specific mount points
246
262
If you are getting `WARNING: Non existant bind point (directory) in container: '/shared_fs'` or a similar error when running your Singularity image that means that your Singularity images require custom mount points. To make the error go away you can specify the mount points required by your system when creating the Singularity image:
This work is heavily based on the `docker2singularity` work done by [vsoch](https://github.com/vsoch) and [gmkurtzer](https://github.com/gmkurtzer). Hopefully most of the conversion code will be merged into Singularity in the future making this container even leaner!
275
+
276
+
This work is heavily based on the `docker2singularity` work done by [vsoch](https://github.com/vsoch)
277
+
and [gmkurtzer](https://github.com/gmkurtzer). The original record of the work can be read about
278
+
in [this commit](https://github.com/singularityware/docker2singularity/commit/d174cadefd90f77f302f4bef5a8cd089eb2da2e4).
279
+
Thank you kindly to all the contributors, and please open an issue if you need help.
0 commit comments