1singularity(1)                                                  singularity(1)
2
3
4

NAME

6       singularity-instance-start - Start a named instance of the given
7       container image
8
9
10

SYNOPSIS

12       singularity instance start [start options...] <container path>
13       <instance name> [startscript args...]
14
15
16

DESCRIPTION

18       The instance start command allows you to create a new named instance
19       from an
20         existing container image that will begin running in the background.
21       If a
22         startscript is defined in the container metadata the commands in that
23       script
24         will be executed with the instance start command as well. You can
25       optionally
26         pass arguments to startscript
27
28
29       singularity instance start accepts the following container formats
30
31
32       *.sif               Singularity Image Format (SIF). Native to
33       Singularity 3.0+
34
35
36       *.sqsh              SquashFS format.  Native to Singularity 2.4+
37
38
39       *.img               ext3 format. Native to Singularity versions < 2.4.
40
41
42       directory/          sandbox format. Directory containing a valid root
43       file
44                             system and optionally Singularity meta-data.
45
46
47       instance://*        A local running instance of a container. (See the
48       instance
49                             command group.)
50
51
52       library://*         A container hosted on a Library (default
53
54https://cloud.sylabs.io/library)⟩
55
56
57       docker://*          A container hosted on Docker Hub
58
59
60       shub://*            A container hosted on Singularity Hub
61
62
63       oras://*            A container hosted on a supporting OCI registry
64
65
66

OPTIONS

68       --add-caps=""
69           a comma separated capability list to add
70
71
72       --allow-setuid[=false]
73           allow setuid binaries in container (root only)
74
75
76       --apply-cgroups=""
77           apply cgroups from file for container processes (root only)
78
79
80       -B, --bind=[]
81           a user-bind path specification.  spec has the format
82       src[:dest[:opts]], where src and dest are outside and inside paths.  If
83       dest is not given, it is set equal to src.  Mount options ('opts') may
84       be specified as 'ro' (read-only) or 'rw' (read/write, which is the
85       default). Multiple bind paths can be given by a comma separated list.
86
87
88       --boot[=false]
89           execute /sbin/init to boot container (root only)
90
91
92       -e, --cleanenv[=false]
93           clean environment before running container
94
95
96       -c, --contain[=false]
97           use minimal /dev and empty other directories (e.g. /tmp and $HOME)
98       instead of sharing filesystems from your host
99
100
101       -C, --containall[=false]
102           contain not only file systems, but also PID, IPC, and environment
103
104
105       --disable-cache[=false]
106           dont use cache, and dont create cache
107
108
109       --dns=""
110           list of DNS server separated by commas to add in resolv.conf
111
112
113       --docker-login[=false]
114           login to a Docker Repository interactively
115
116
117       --drop-caps=""
118           a comma separated capability list to drop
119
120
121       -f, --fakeroot[=false]
122           run container in new user namespace as uid 0
123
124
125       -h, --help[=false]
126           help for start
127
128
129       -H, --home="/builddir"
130           a home directory specification.  spec can either be a src path or
131       src:dest pair.  src is the source path of the home directory outside
132       the container and dest overrides the home directory within the
133       container.
134
135
136       --hostname=""
137           set container hostname
138
139
140       -i, --ipc[=false]
141           run container in a new IPC namespace
142
143
144       --keep-privs[=false]
145           let root user keep privileges in container (root only)
146
147
148       -n, --net[=false]
149           run container in a new network namespace (sets up a bridge network
150       interface by default)
151
152
153       --network="bridge"
154           specify desired network type separated by commas, each network will
155       bring up a dedicated interface inside container
156
157
158       --network-args=[]
159           specify network arguments to pass to CNI plugins
160
161
162       --no-home[=false]
163           do NOT mount users home directory if home is not the current
164       working directory
165
166
167       --no-init[=false]
168           do NOT start shim process with --pid
169
170
171       --no-nv[=false]
172
173
174       --no-privs[=false]
175           drop all privileges from root user in container)
176
177
178       --nohttps[=false]
179           do NOT use HTTPS, for communicating with local docker registry
180
181
182       --nv[=false]
183           enable experimental Nvidia support
184
185
186       -o, --overlay=[]
187           use an overlayFS image for persistent data storage or as read-only
188       layer of container
189
190
191       --passphrase[=false]
192           Enter a passphrase for an encrypted contaner
193
194
195       --pem-path=""
196           Enter an path to a PEM formated RSA key for an encrypted container
197
198
199       -p, --pid[=false]
200           run container in a new PID namespace
201
202
203       -S, --scratch=[]
204           include a scratch directory within the container that is linked to
205       a temporary dir (use -W to force location)
206
207
208       --security=[]
209           enable security features (SELinux, Apparmor, Seccomp)
210
211
212       -u, --userns[=false]
213           run container in a new user namespace, allowing Singularity to run
214       completely unprivileged on recent kernels. This disables some features
215       of Singularity, for example it only works with sandbox images.
216
217
218       --uts[=false]
219           run container in a new UTS namespace
220
221
222       -W, --workdir=""
223           working directory to be used for /tmp, /var/tmp and $HOME (if
224       -c/--contain was also used)
225
226
227       -w, --writable[=false]
228           by default all Singularity containers are available as read only.
229       This option makes the file system accessible as read/write.
230
231
232       --writable-tmpfs[=false]
233           makes the file system accessible as read-write with non persistent
234       data (with overlay support only)
235
236
237

EXAMPLE

239                $ singularity instance start /tmp/my-sql.sif mysql
240
241                $ singularity shell instance://mysql
242                Singularity my-sql.sif> pwd
243                /home/mibauer/mysql
244                Singularity my-sql.sif> ps
245                PID TTY          TIME CMD
246                  1 pts/0    00:00:00 sinit
247                  2 pts/0    00:00:00 bash
248                  3 pts/0    00:00:00 ps
249                Singularity my-sql.sif>
250
251                $ singularity instance stop /tmp/my-sql.sif mysql
252                Stopping /tmp/my-sql.sif mysql
253
254
255
256

SEE ALSO

258       singularity-instance(1)
259
260
261

HISTORY

263       21-Oct-2019 Auto generated by spf13/cobra
264
265
266
267Auto generated by spf13/cobra      Oct 2019                     singularity(1)
Impressum