Skip to content

Commit 722b5b2

Browse files
committed
removing docker functions to close #25
1 parent f5f3104 commit 722b5b2

File tree

2 files changed

+9
-108
lines changed

2 files changed

+9
-108
lines changed
Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,22 @@
11
# docker2singularity
22

3-
You have several options for converting docker images to singularity.
3+
These are no longer the recommended way/standard to get a Docker image into Singularity, but are provided for
4+
reference if they might be useful to you. These methods rely upon having the Docker daemon installed, and the command line tool uses the native registry (meaning you don't need Docker). For the recommended way, see [http://singularity.lbl.gov/docs-docker](http://singularity.lbl.gov/docs-docker).
45

5-
## shub command line
6-
This tool currently has command line and (functions) to convert a Docker image to Singularity. Currently, we don't add any sort of runscript from the CMD, as this needs to be better developed. To use on the command line:
76

7+
## docker2singularity.py
8+
This python script has functions that could be used toward this goal. You could do:
89

9-
shub --docker2singularity ubuntu:latest
10+
cd examples/docker2singularity
11+
from docker2singularity import *
12+
docker_image = 'ubuntu:latest'
13+
image = docker2singularity(docker_image,output_folder=None)
1014

11-
12-
will export the image `ubuntu:latest-2016-04-06.img` into your current working directory. If you want to export to a different folder:
1315

14-
15-
shub --docker2singularity ubuntu:latest --outfolder /home/vanessa/Desktop
16+
This example will export the image `ubuntu:latest-2016-04-06.img` into your current working directory. If you want to export to a different folder, set the output_folder to something else.
1617

1718

1819
## docker2singularity bash
1920
Using the script in this folder, you can run:
2021

2122
docker2singularity.sh ubuntu:14.04
22-
23-
24-
## singularity bash
25-
You can also use the singularity (bash) command line tool, which requires you to specify the --file location of your Docker image. This method is not ideal because most people don't know where these images are on their computer!
26-
27-
28-
sudo singularity create /tmp/fedora.img
29-
sudo singularity import -t docker fedora /tmp/fedora.img
30-
31-
32-
## singularity-python
33-
You can finally use this command line tool to create an image in the same manner as the above script.
34-
35-
from singularity.cli import Singularity
36-
S = Singularity()
37-
docker_image = S.docker2singularity("ubuntu:latest")

singularity/docker.py

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)