{{ message }}
Repository navigation
Expand file tree
/
Copy pathlinux-cli.html
More file actions
719 lines (708 loc) · 46.2 KB
/
Copy pathlinux-cli.html
File metadata and controls
719 lines (708 loc) · 46.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="Every droidspaces command and flag, the config file keys, the JSON output and the exit codes.">
<title>Command line reference - Droidspaces Docs</title>
<meta property="og:title" content="Command line reference - Droidspaces Docs">
<meta property="og:description" content="Every droidspaces command and flag, the config file keys, the JSON output and the exit codes.">
<meta property="og:url" content="https://www.droidspaces.org/docs/linux-cli.html">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Droidspaces">
<meta property="og:image" content="https://www.droidspaces.org/assets/images/og-image.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="The Droidspaces wordmark, the words Linux containers on Android, and a terminal starting an Ubuntu container">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Command line reference - Droidspaces Docs">
<meta name="twitter:description" content="Every droidspaces command and flag, the config file keys, the JSON output and the exit codes.">
<meta name="twitter:image" content="https://www.droidspaces.org/assets/images/og-image.png">
<link rel="canonical" href="https://www.droidspaces.org/docs/linux-cli.html">
<link rel="icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/favicon.ico">
<link rel="stylesheet" href="/assets/css/site.css?v=b310d7c992">
<link rel="stylesheet" href="/assets/css/main.css?v=f55293065d">
<script type="application/ld+json">[{"@context": "https://schema.org", "@type": "TechArticle", "headline": "Command line reference", "description": "Every droidspaces command and flag, the config file keys, the JSON output and the exit codes.", "url": "https://www.droidspaces.org/docs/linux-cli.html", "inLanguage": "en", "dateModified": "2026-12-04", "author": {"@type": "Organization", "name": "Droidspaces", "url": "https://www.droidspaces.org/", "sameAs": ["https://github.com/ravindu644/Droidspaces-OSS", "https://t.me/Droidspaces"]}, "publisher": {"@type": "Organization", "name": "Droidspaces", "url": "https://www.droidspaces.org/", "sameAs": ["https://github.com/ravindu644/Droidspaces-OSS", "https://t.me/Droidspaces"]}, "isPartOf": {"@type": "WebSite", "name": "Droidspaces", "url": "https://www.droidspaces.org/"}}, {"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{"@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.droidspaces.org/"}, {"@type": "ListItem", "position": 2, "name": "Documentation", "item": "https://www.droidspaces.org/docs/"}, {"@type": "ListItem", "position": 3, "name": "Command line reference", "item": "https://www.droidspaces.org/docs/linux-cli.html"}]}]</script>
<script>(function(){const t=localStorage.getItem('theme');if(t)document.documentElement.setAttribute('data-theme',t);})();</script>
</head>
<body>
<a class="button button-filled skip-link" href="#main">Skip to content</a>
<nav class="nav" aria-label="Main">
<div class="nav-inner">
<a href="/" class="nav-logo"><svg viewBox="8.25 10.35 31.5 27.3" fill="currentColor" aria-hidden="true"><path d="M36.85 30.16H11.15c-0.82 0-1.48 0.68-1.48 1.52v3.05c0 0.84 0.66 1.52 1.48 1.52h25.69c0.82 0 1.48-0.68 1.48-1.52v-3.05c0-0.84-0.66-1.52-1.48-1.52ZM12.58 34.97c-0.95 0-1.73-0.79-1.73-1.77s0.77-1.77 1.73-1.77 1.73 0.79 1.73 1.77-0.77 1.77-1.73 1.77Z"/><path d="M36.85 21.00H11.15c-0.82 0-1.48 0.68-1.48 1.52v3.05c0 0.84 0.66 1.52 1.48 1.52h25.69c0.82 0 1.48-0.68 1.48-1.52v-3.05c0-0.84-0.66-1.52-1.48-1.52ZM12.58 25.82c-0.95 0-1.73-0.79-1.73-1.77s0.77-1.77 1.73-1.77 1.73 0.79 1.73 1.77-0.77 1.77-1.73 1.77Z"/><path d="M36.84 11.74H11.15c-0.82 0-1.48 0.68-1.48 1.52v3.05c0 0.84 0.66 1.52 1.48 1.52h25.69c0.82 0 1.48-0.68 1.48-1.52v-3.05c0-0.84-0.66-1.52-1.48-1.52ZM12.58 16.57c-0.95 0-1.73-0.79-1.73-1.77s0.77-1.77 1.73-1.77 1.73 0.79 1.73 1.77-0.77 1.77-1.73 1.77Z"/></svg> Droidspaces</a>
<div id="nav-drawer" class="nav-drawer" popover>
<button class="icon-button nav-close" popovertarget="nav-drawer" popovertargetaction="hide" aria-label="Close menu"><span class="icon" aria-hidden="true">close</span></button>
<ul class="nav-links">
<li><a href="/downloads.html">Download</a></li>
<li><a href="/docs/" aria-current="page">Documentation</a></li>
<li><a href="/docs/community-supported-devices.html">Devices</a></li>
<li><a href="https://github.com/ravindu644/Droidspaces-OSS" rel="noopener noreferrer">GitHub</a></li>
<li><a href="https://t.me/Droidspaces" rel="noopener noreferrer">Telegram</a></li>
</ul>
</div>
<button class="icon-button theme-toggle" id="theme-toggle" aria-label="Toggle theme"><span class="icon" aria-hidden="true"></span></button>
<button class="icon-button nav-menu" popovertarget="nav-drawer" aria-label="Open menu"><span class="icon" aria-hidden="true">menu</span></button>
</div>
</nav>
<div class="docs-layout">
<button class="doc-breadcrumb" popovertarget="sidebar"><span class="icon" aria-hidden="true">menu</span><span>Docs</span><span class="bc-sep">/</span><span class="bc-section">Guides</span><span class="bc-sep">/</span><span class="bc-label">Command line reference</span></button>
<aside class="sidebar" id="sidebar" popover>
<button class="icon-button sidebar-close" popovertarget="sidebar" popovertargetaction="hide" aria-label="Close navigation"><span class="icon" aria-hidden="true">close</span></button>
<button class="search-open" type="button" hidden><span class="icon" aria-hidden="true">search</span>Search the docs<kbd>Ctrl K</kbd></button>
<details class="sidebar-group" open><summary class="sidebar-heading">Basics</summary>
<a href="installation-android.html" class="sidebar-link">Android installation</a>
<a href="installation-linux.html" class="sidebar-link">Linux installation</a>
</details>
<details class="sidebar-group" open><summary class="sidebar-heading">Guides</summary>
<a href="usage-android-app.html" class="sidebar-link">Android app guide</a>
<a href="kernel-configuration.html" class="sidebar-link">Kernel configuration</a>
<a href="community-supported-devices.html" class="sidebar-link">Community-supported devices</a>
<a href="features.html" class="sidebar-link">Container settings</a>
<a href="linux-cli.html" class="sidebar-link" aria-current="page">Command line reference</a>
<a href="graphics-and-audio.html" class="sidebar-link">Display, audio and desktop</a>
<a href="anland.html" class="sidebar-link">Anland (Wayland)</a>
</details>
<details class="sidebar-group" open><summary class="sidebar-heading">Recipes</summary>
<a href="cool-things-you-can-do.html" class="sidebar-link">Recipes</a>
</details>
<details class="sidebar-group" open><summary class="sidebar-heading">Reference</summary>
<a href="troubleshooting.html" class="sidebar-link">Troubleshooting</a>
<a href="nix-nixos.html" class="sidebar-link">NixOS</a>
<a href="networking-from-zero.html" class="sidebar-link">Networking from zero</a>
<a href="uninstallation.html" class="sidebar-link">Uninstallation</a>
</details>
</aside>
<main id="main" class="docs-content">
<article>
<h1 id="command-line-reference">Command line reference <a class="header-anchor" href="#command-line-reference">#</a></h1>
<p>This page is for running containers from a terminal or a script. For the same things through the app, read the <a href="usage-android-app.html">Android app guide</a>; for complete projects, see the <a href="cool-things-you-can-do.html">recipes</a>.</p>
<p>The <code>droidspaces</code> binary is the same on Linux and Android, and so are its commands and flags. On Android the app installs it at <code>/data/local/Droidspaces/bin/droidspaces</code>; the <strong>Integrate Droidspaces to the system path</strong> setting links it into <code>/system/bin</code> after a reboot, so a root shell finds it by name. Most commands need root, and the kernel needs namespaces and a few other features: <code>droidspaces check</code> lists what yours has.</p>
<div class="code-block"><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code>droidspaces [options] <command> [args]
droidspaces [options] run [--] <cmd> [args]
</code></pre></div>
<p>Options and the command can come in any order, short and long forms are interchangeable, and <code>=</code> is optional: <code>droidspaces -n web start</code> and <code>droidspaces start --name=web</code> are the same. The one exception is <code>run</code>: everything after it belongs to the command, so put your options before it.</p>
<div class="table-wrap"><table>
<thead>
<tr>
<th>Global option</th>
<th>Meaning</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>-n</code>, <code>--name=NAME</code></td>
<td>The container. Can be left out of <code>stop</code>, <code>restart</code>, <code>enter</code>, <code>run</code>, <code>info</code> and <code>pid</code> when exactly one container is running.</td>
</tr>
<tr>
<td><code>-C</code>, <code>--conf</code>, <code>--config=FILE</code></td>
<td>Load the container's config from this file.</td>
</tr>
<tr>
<td><code>--json</code></td>
<td>JSON output from <code>show</code>, <code>info</code> and <code>check</code>.</td>
</tr>
<tr>
<td><code>--help</code></td>
<td>Same as <code>help</code>.</td>
</tr>
<tr>
<td><code>DS_NO_PROXY=1</code></td>
<td>An environment variable, not a flag: the binary does the work itself instead of handing it to the daemon.</td>
</tr>
</tbody>
</table></div>
<h2 id="commands">Commands <a class="header-anchor" href="#commands">#</a></h2>
<div class="table-wrap"><table>
<thead>
<tr>
<th>Command</th>
<th>What it does</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="#start"><code>start</code></a></td>
<td>Boots a container.</td>
</tr>
<tr>
<td><a href="#stop"><code>stop</code></a></td>
<td>Shuts one or more containers down.</td>
</tr>
<tr>
<td><a href="#restart"><code>restart</code></a></td>
<td>Stops and starts a running container.</td>
</tr>
<tr>
<td><a href="#enter"><code>enter</code></a></td>
<td>Opens a shell inside a running container.</td>
</tr>
<tr>
<td><a href="#run"><code>run</code></a></td>
<td>Runs one command inside a running container.</td>
</tr>
<tr>
<td><a href="#show"><code>show</code></a></td>
<td>Lists the running containers.</td>
</tr>
<tr>
<td><a href="#info"><code>info</code></a></td>
<td>Shows a running container's settings and live state.</td>
</tr>
<tr>
<td><a href="#pid"><code>pid</code></a></td>
<td>Prints the PID of the container's init.</td>
</tr>
<tr>
<td><a href="#scan"><code>scan</code></a></td>
<td>Re-registers running containers whose host-side records were lost.</td>
</tr>
<tr>
<td><a href="#check"><code>check</code></a></td>
<td>Probes the kernel for everything Droidspaces uses.</td>
</tr>
<tr>
<td><a href="#daemon"><code>daemon</code></a></td>
<td>Starts the background daemon.</td>
</tr>
<tr>
<td><a href="#mode"><code>mode</code></a></td>
<td>Says whether commands go through a daemon.</td>
</tr>
<tr>
<td><a href="#docs-help-version"><code>docs</code>, <code>help</code>, <code>version</code></a></td>
<td>The built-in guide, the flag summary, the version.</td>
</tr>
</tbody>
</table></div>
<h2 id="how-it-works">How it works <a class="header-anchor" href="#how-it-works">#</a></h2>
<ul>
<li><strong>The workspace</strong> holds every container's config, PID file and logs: <code>/var/lib/Droidspaces</code> on Linux, <code>/data/local/Droidspaces</code> on Android.</li>
<li><strong>Flags are saved on <code>start</code>.</strong> Each start writes the container's config, with the flags you gave, to <code><workspace>/Containers/<name>/container.config</code>, so later commands need only the name. See <a href="#the-config-file">The config file</a>.</li>
<li><strong>The daemon.</strong> When <code>droidspaces daemon</code> is running, every command except <code>check</code>, <code>docs</code>, <code>help</code>, <code>version</code> and <code>mode</code> is handed to it. The daemon accepts root and members of the <code>droidspaces</code> group, so those users need no <code>sudo</code>. With no daemon, the binary does the work itself and needs root. <code>mode</code> tells you which case you are in.</li>
<li><strong>A running container answers for itself.</strong> Commands read a running container's config from its monitor process, the config it booted with, so edits to <code>container.config</code> apply on the next start or restart.</li>
</ul>
<h2 id="start">start <a class="header-anchor" href="#start">#</a></h2>
<div class="code-block"><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code>droidspaces --name=NAME --rootfs=DIR [flags] start # first start, from a directory
droidspaces --name=NAME --rootfs-img=IMAGE [flags] start # first start, from an ext4 image
droidspaces --name=NAME [flags] start # later starts, from the saved config
droidspaces --config=FILE [flags] start # from a config file
</code></pre></div>
<p>Takes every flag in <a href="#flags">Flags</a> and saves the ones that configure the container. A first start needs a name and a rootfs; after that the saved config supplies the rootfs. <code>start</code> takes one name only. It returns once the container's init is running, unless you pass <code>--foreground</code> from a terminal.</p>
<h2 id="stop">stop <a class="header-anchor" href="#stop">#</a></h2>
<div class="code-block"><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code>droidspaces --name=NAME stop # one container
droidspaces --name=a,b,c stop # several, one after another
</code></pre></div>
<p>Asks the container's init to shut down the way its init system expects, waits up to 15 seconds, then kills it.</p>
<h2 id="restart">restart <a class="header-anchor" href="#restart">#</a></h2>
<div class="code-block"><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code>droidspaces --name=NAME [flags] restart
</code></pre></div>
<p>The container must be running. <code>restart</code> stops it and starts it again with nothing else able to act on it in between, and an image rootfs stays mounted, so it is fast. It reads <code>container.config</code> again, so edits made while the container ran take effect, and flags apply as on <code>start</code>. Running <code>reboot</code> inside the container restarts it the same way.</p>
<h2 id="enter">enter <a class="header-anchor" href="#enter">#</a></h2>
<div class="code-block"><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code>droidspaces --name=NAME enter # a root shell
droidspaces --name=NAME enter USER # a login shell as USER
</code></pre></div>
<p>Logs in with the container's own <code>su -l USER</code>. Without <code>su</code>, it starts the user's shell from <code>/etc/passwd</code>, then the first of <code>/bin/bash</code>, <code>/bin/ash</code> and <code>/bin/sh</code> that exists. Through the daemon, <code>enter</code> needs a terminal.</p>
<h2 id="run">run <a class="header-anchor" href="#run">#</a></h2>
<div class="code-block"><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code>droidspaces --name=NAME run CMD [ARGS] # run a program
droidspaces --name=NAME run 'CMD | CMD' # one argument with a space runs through /bin/sh -c
droidspaces --name=NAME --user=USER run CMD # as another account, through su
droidspaces --name=NAME --stdin run CMD < FILE # feed your input to the command
</code></pre></div>
<div class="table-wrap"><table>
<thead>
<tr>
<th>Option</th>
<th>Meaning</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>-u</code>, <code>--user=USER</code></td>
<td>Run as this account, through the container's <code>su - USER -c</code>. Default: root.</td>
</tr>
<tr>
<td><code>--stdin</code></td>
<td>Pass your input to the command. Through the daemon, a <code>run</code> outside a terminal reads nothing without it.</td>
</tr>
</tbody>
</table></div>
<p>The command starts in <code>/</code>, with <code>/run/current-system/sw/bin</code> added to <code>PATH</code> for NixOS. A <code>--</code> right after <code>run</code> is dropped, the way <code>env</code> does. <code>run</code> exits with the command's own status, see <a href="#exit-codes">Exit codes</a>.</p>
<h2 id="show">show <a class="header-anchor" href="#show">#</a></h2>
<div class="code-block"><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code>droidspaces show # a table of running containers: name and PID
droidspaces --json show # the same with OS, addresses, uptime, CPU and RAM
</code></pre></div>
<h2 id="info">info <a class="header-anchor" href="#info">#</a></h2>
<div class="code-block"><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code>droidspaces --name=NAME info # settings and live state, as text
droidspaces --name=NAME --json info # the same as JSON
</code></pre></div>
<p>The container must be running.</p>
<h2 id="pid">pid <a class="header-anchor" href="#pid">#</a></h2>
<div class="code-block"><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code>droidspaces --name=NAME pid # the PID of the container's init as the host sees it, or NONE
</code></pre></div>
<h2 id="scan">scan <a class="header-anchor" href="#scan">#</a></h2>
<div class="code-block"><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code>droidspaces scan
</code></pre></div>
<p>Finds running containers whose host-side config or PID file was lost and registers them again, from what each container's monitor process holds: the config it booted with and its init PID. Nothing is read from inside a container. It also removes stale PID files, unmounts image rootfs mounts under <code>/mnt/Droidspaces</code> that no container uses any more, and warns about a container init with no monitor, with the <code>kill -KILL</code> command to stop it. Commands run a scan on their own when they cannot find a container by name.</p>
<h2 id="check">check <a class="header-anchor" href="#check">#</a></h2>
<div class="code-block"><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code>droidspaces check # the report, in must-have, recommended and optional groups
droidspaces --json check # one 0 or 1 per probe, see JSON output
</code></pre></div>
<p><code>check</code> needs no root and never goes through the daemon. Without root, <code>root</code> and several namespace and network probes report missing, so run it as root for the real answer.</p>
<h2 id="daemon">daemon <a class="header-anchor" href="#daemon">#</a></h2>
<div class="code-block"><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code>droidspaces daemon # start it in the background
droidspaces daemon --foreground # stay attached, for a service manager
</code></pre></div>
<p>Needs root, and refuses to start when a daemon already answers. The systemd unit and the Android init service in <code>init/</code> both run <code>droidspaces daemon --foreground</code>.</p>
<h2 id="mode">mode <a class="header-anchor" href="#mode">#</a></h2>
<div class="code-block"><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code>droidspaces mode # prints daemon if a daemon is answering, otherwise direct
</code></pre></div>
<h2 id="docs-help-version">docs, help, version <a class="header-anchor" href="#docs-help-version">#</a></h2>
<div class="code-block"><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code>droidspaces docs # the built-in guide: pages in a terminal, all of it when piped
droidspaces help # every command and flag on one screen
droidspaces version # the version, for example v7.2.0
</code></pre></div>
<h2 id="flags">Flags <a class="header-anchor" href="#flags">#</a></h2>
<p>Each flag that configures the container is saved in its config file on <code>start</code>, so it only has to be given once. <a href="features.html">Container settings</a> explains what each one does and when to use it; this table is the syntax. Old spellings still work: <code>--termux-x11</code> for <code>--x11</code> and <code>--allow-userns</code> for <code>--allow-sandboxing</code>.</p>
<p><strong>Rootfs and identity</strong></p>
<div class="table-wrap"><table>
<thead>
<tr>
<th>Flag</th>
<th>Value</th>
<th>Config key</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>-r</code>, <code>--rootfs</code></td>
<td>directory with the rootfs</td>
<td><code>rootfs_path</code></td>
</tr>
<tr>
<td><code>-i</code>, <code>--rootfs-img</code></td>
<td>ext4 image file or block device</td>
<td><code>rootfs_path</code></td>
</tr>
<tr>
<td><code>-n</code>, <code>--name</code></td>
<td>container name; a comma-separated list for <code>stop</code></td>
<td><code>name</code></td>
</tr>
<tr>
<td><code>-h</code>, <code>--hostname</code></td>
<td>hostname inside the container, defaults to the name</td>
<td><code>hostname</code></td>
</tr>
<tr>
<td><code>-C</code>, <code>--conf</code>, <code>--config</code></td>
<td>config file to load</td>
<td></td>
</tr>
<tr>
<td><code>--reset</code></td>
<td>reset the config to defaults, keeping name and rootfs</td>
<td></td>
</tr>
<tr>
<td><code>--init</code></td>
<td>absolute path of the init binary, no spaces, default <code>/sbin/init</code></td>
<td><code>custom_init</code></td>
</tr>
<tr>
<td><code>-E</code>, <code>--env</code></td>
<td>file of <code>KEY=value</code> lines, read again on every start, <code>enter</code> and <code>run</code>; a path with a <code>.</code> or <code>..</code> component is refused</td>
<td><code>env_file</code></td>
</tr>
<tr>
<td><code>-B</code>, <code>--bind</code>, <code>--bind-mount</code></td>
<td><code>SRC:DEST[:ro]</code>, repeatable or comma-separated</td>
<td><code>bind_mounts</code></td>
</tr>
</tbody>
</table></div>
<p><strong>Networking</strong></p>
<div class="table-wrap"><table>
<thead>
<tr>
<th>Flag</th>
<th>Value</th>
<th>Config key</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>--net</code></td>
<td><code>nat</code> (default), <code>gateway</code>, <code>macvlan</code>, <code>host</code>, <code>none</code></td>
<td><code>net_mode</code></td>
</tr>
<tr>
<td><code>--nat-ip</code></td>
<td>fixed address in <code>172.28.0.0/16</code>, NAT only</td>
<td><code>static_nat_ip</code></td>
</tr>
<tr>
<td><code>--upstream</code></td>
<td>interfaces to send NAT traffic through, comma-separated, wildcards allowed; turns off auto-detection</td>
<td><code>upstream_interfaces</code></td>
</tr>
<tr>
<td><code>--port</code></td>
<td><code>HOST[:CONTAINER][/tcp|udp]</code>, default <code>tcp</code>, ranges as <code>a-b:a-b</code>, repeatable or comma-separated, NAT only</td>
<td><code>port_forwards</code></td>
</tr>
<tr>
<td><code>-d</code>, <code>--dns</code></td>
<td>resolvers, comma-separated</td>
<td><code>dns_servers</code></td>
</tr>
<tr>
<td><code>-I</code>, <code>--disable-ipv6</code></td>
<td></td>
<td><code>disable_ipv6</code></td>
</tr>
<tr>
<td><code>--gateway</code>, <code>--gateway-container</code></td>
<td>the running container that acts as router, required for gateway mode</td>
<td><code>gateway_container</code></td>
</tr>
<tr>
<td><code>--gateway-net</code></td>
<td>LAN segment name, default <code>lan</code></td>
<td><code>gateway_net</code></td>
</tr>
<tr>
<td><code>--gateway-iface</code></td>
<td>the LAN interface's name inside the gateway, default <code>eth1</code></td>
<td><code>gateway_lan_ifname</code></td>
</tr>
<tr>
<td><code>--gateway-bridge</code></td>
<td>host bridge name, default <code>ds-<gateway-net></code></td>
<td><code>gateway_bridge</code></td>
</tr>
<tr>
<td><code>--macvlan-parent</code></td>
<td>host NIC, required for macvlan mode</td>
<td><code>macvlan_parent</code></td>
</tr>
<tr>
<td><code>--macvlan-mode</code></td>
<td><code>bridge</code> (default), <code>private</code>, <code>vepa</code>, <code>passthru</code></td>
<td><code>macvlan_mode</code></td>
</tr>
</tbody>
</table></div>
<p><strong>Hardware and integration</strong></p>
<div class="table-wrap"><table>
<thead>
<tr>
<th>Flag</th>
<th>Value</th>
<th>Config key</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>-H</code>, <code>--hw-access</code></td>
<td></td>
<td><code>enable_hw_access</code></td>
</tr>
<tr>
<td><code>--allow-vts</code></td>
<td>with <code>--hw-access</code>, leave the host's <code>tty1</code> to <code>tty6</code> visible</td>
<td><code>allow_vts</code></td>
</tr>
<tr>
<td><code>--gpu</code></td>
<td></td>
<td><code>enable_gpu_mode</code></td>
</tr>
<tr>
<td><code>-X</code>, <code>--x11</code></td>
<td></td>
<td><code>enable_x11</code></td>
</tr>
<tr>
<td><code>--tx11-flags</code></td>
<td>Android only, extra arguments for Termux:X11</td>
<td><code>tx11_extra_flags</code></td>
</tr>
<tr>
<td><code>--virgl</code></td>
<td>Android only</td>
<td><code>enable_virgl</code></td>
</tr>
<tr>
<td><code>--virgl-flags</code></td>
<td>Android only, extra arguments for the VirGL server</td>
<td><code>virgl_extra_flags</code></td>
</tr>
<tr>
<td><code>--pulse-audio</code></td>
<td>Android only</td>
<td><code>enable_pulseaudio</code></td>
</tr>
<tr>
<td><code>--anland</code></td>
<td>Android only, Wayland desktop through the Anland app</td>
<td><code>enable_anland</code></td>
</tr>
<tr>
<td><code>-S</code>, <code>--enable-android-storage</code></td>
<td>Android only</td>
<td><code>enable_android_storage</code></td>
</tr>
</tbody>
</table></div>
<p><strong>Resource limits, security and boot</strong></p>
<div class="table-wrap"><table>
<thead>
<tr>
<th>Flag</th>
<th>Value</th>
<th>Config key</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>--memory</code></td>
<td>size with <code>K</code>, <code>M</code>, <code>G</code> or <code>T</code>, minimum <code>4M</code></td>
<td><code>memory_limit</code>, in bytes</td>
</tr>
<tr>
<td><code>--allow-swap</code></td>
<td></td>
<td><code>allow_swap</code></td>
</tr>
<tr>
<td><code>--cpus</code></td>
<td>cores, fractions allowed, minimum <code>0.01</code></td>
<td><code>cpu_quota</code> and <code>cpu_period</code>, in microseconds</td>
</tr>
<tr>
<td><code>--pids-limit</code></td>
<td>process count, 16 to 4194304</td>
<td><code>pids_limit</code></td>
</tr>
<tr>
<td><code>-P</code>, <code>--selinux-permissive</code></td>
<td></td>
<td><code>selinux_permissive</code></td>
</tr>
<tr>
<td><code>--allow-sandboxing</code></td>
<td></td>
<td><code>allow_sandboxing</code></td>
</tr>
<tr>
<td><code>-V</code>, <code>--volatile</code></td>
<td></td>
<td><code>volatile_mode</code></td>
</tr>
<tr>
<td><code>--force-cgroupv1</code></td>
<td></td>
<td><code>force_cgroupv1</code></td>
</tr>
<tr>
<td><code>--privileged</code></td>
<td><code>nomask</code>, <code>nocaps</code>, <code>noseccomp</code>, <code>shared</code>, <code>full</code>, comma-separated</td>
<td><code>privileged</code></td>
</tr>
<tr>
<td><code>-f</code>, <code>--foreground</code></td>
<td>attach your terminal to the container's console; Ctrl+Alt+Q stops the container. A start without a terminal turns it off</td>
<td><code>foreground</code></td>
</tr>
</tbody>
</table></div>
<p><strong>Session flags</strong>, not saved</p>
<div class="table-wrap"><table>
<thead>
<tr>
<th>Flag</th>
<th>What it does</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>-u</code>, <code>--user</code></td>
<td>The account <code>run</code> uses.</td>
</tr>
<tr>
<td><code>--stdin</code></td>
<td>Pass your input to the <code>run</code> command.</td>
</tr>
<tr>
<td><code>--json</code></td>
<td>JSON output from <code>show</code>, <code>info</code> and <code>check</code>.</td>
</tr>
</tbody>
</table></div>
<h2 id="the-config-file">The config file <a class="header-anchor" href="#the-config-file">#</a></h2>
<p>A plain <code>key=value</code> file, one key per line, with the keys from the tables above. Droidspaces reads one: the file named by <code>--config</code>; otherwise, when <code>--rootfs</code> or <code>--rootfs-img</code> is given, <code>container.config</code> in the directory that holds the rootfs; otherwise <code><workspace>/Containers/<name>/container.config</code>. <code>start</code> saves to the file it used and always to the workspace copy.</p>
<div class="code-block"><span class="code-lang">ini</span><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code><span class="na">name</span><span class="o">=</span><span class="s">web</span>
<span class="na">hostname</span><span class="o">=</span><span class="s">web</span>
<span class="na">rootfs_path</span><span class="o">=</span><span class="s">/var/lib/Droidspaces/Containers/web/rootfs.img</span>
<span class="na">net_mode</span><span class="o">=</span><span class="s">nat</span>
<span class="na">port_forwards</span><span class="o">=</span><span class="s">80:80/tcp,443:443/tcp</span>
<span class="na">bind_mounts</span><span class="o">=</span><span class="s">/srv/www:/var/www:ro</span>
<span class="na">memory_limit</span><span class="o">=</span><span class="s">1073741824</span>
<span class="na">cpu_quota</span><span class="o">=</span><span class="s">200000</span>
<span class="na">cpu_period</span><span class="o">=</span><span class="s">100000</span>
<span class="na">allow_sandboxing</span><span class="o">=</span><span class="s">1</span>
</code></pre></div>
<p>Droidspaces writes booleans as <code>0</code> or <code>1</code>, and also reads <code>true</code>/<code>false</code>, <code>yes</code>/<code>no</code> and <code>on</code>/<code>off</code>. Keys the backend does not know, such as the app's <code>run_at_boot</code>, are kept in place. While a container runs, the config it booted with is visible inside it at <code>/run/droidspaces/container.config</code>. That copy is read-only and there for scripts inside the container: changing it has no effect, since the host never reads it.</p>
<h2 id="json-output">JSON output <a class="header-anchor" href="#json-output">#</a></h2>
<p>Every JSON output is one flat object on one line, with strings and integers only. Flags are <code>0</code> or <code>1</code>, and a limit of <code>0</code> means none.</p>
<p><strong><code>show --json</code></strong>, on a host with three containers installed and none running:</p>
<div class="code-block"><span class="code-lang">json</span><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code><span class="p">{</span><span class="nt">"total"</span><span class="p">:</span><span class="mi">3</span><span class="p">,</span><span class="nt">"ram_total_kb"</span><span class="p">:</span><span class="mi">16047624</span><span class="p">,</span><span class="nt">"running"</span><span class="p">:[]}</span>
</code></pre></div>
<ul>
<li><code>total</code>: the containers in the workspace, running or not. <code>ram_total_kb</code>: the host's memory.</li>
<li><code>running</code>: one object per running container, with <code>name</code>, <code>pid</code>, <code>os</code> (the <code>PRETTY_NAME</code> from its <code>os-release</code>), <code>hostname</code>, <code>ip</code> and <code>ip6</code> (its addresses, comma-separated, without loopback and IPv6 link-local), <code>anland_sock</code>, <code>x11</code>, <code>uptime_sec</code>, <code>uptime</code> (as text), <code>ram_used_kb</code>, <code>cpu_permill</code> (its share of the host's CPU over 250 ms, 0 to 1000), <code>ram_limit_kb</code>, <code>cpu_limit_permill</code> and <code>swap_allowed</code>.</li>
</ul>
<p><strong><code>info --json</code></strong> has one container's keys from <code>running</code> above, plus:</p>
<ul>
<li><code>host_platform</code> (<code>Android</code> or <code>Linux</code>), <code>host_arch</code>, <code>ram_total_kb</code>.</li>
<li><code>networking_mode</code> (<code>NAT</code>, <code>host</code>, <code>none</code>, <code>gateway</code> or <code>macvlan</code>), then by mode: <code>nat_ip</code> and <code>upstream_interfaces</code>; <code>gateway_container</code>, <code>gateway_net</code>, <code>gateway_bridge</code> and <code>gateway_iface</code>; or <code>macvlan_parent</code> and <code>macvlan_mode</code>.</li>
<li><code>disable_ipv6</code>, <code>hw_access</code> (<code>full</code>, <code>GPU</code> or <code>none</code>), and on Android <code>android_storage</code>, <code>tx11_flags</code>, <code>virgl</code>, <code>virgl_flags</code>, <code>pulseaudio</code> and <code>anland</code>.</li>
<li><code>selinux</code> (<code>Permissive</code> or <code>Enforcing</code>) on a host with SELinux.</li>
<li><code>volatile_mode</code>, <code>force_cgroup_v1</code>, <code>memory_limit</code> (bytes), <code>cpu_quota</code>, <code>cpu_period</code>, <code>pids_limit</code>, <code>sandboxing_allowed</code>, <code>vts_allowed</code>, <code>foreground_mode</code>, <code>dns_servers</code>, <code>port_forwards</code>, <code>privileged_mode</code> (when set), <code>bind_mount_count</code>, <code>env_var_count</code>.</li>
</ul>
<p>Keys that do not apply are left out, and the limits are read from the container's cgroup, not from its config.</p>
<p><strong><code>check --json</code></strong>, run without root, trimmed:</p>
<div class="code-block"><span class="code-lang">json</span><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code><span class="p">{</span><span class="nt">"root"</span><span class="p">:</span><span class="mi">0</span><span class="p">,</span><span class="nt">"kernel_version"</span><span class="p">:</span><span class="mi">1</span><span class="p">,</span><span class="nt">"pid_ns"</span><span class="p">:</span><span class="mi">0</span><span class="p">,</span><span class="nt">"mnt_ns"</span><span class="p">:</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="err">...</span><span class="w"> </span><span class="p">,</span><span class="nt">"user_ns"</span><span class="p">:</span><span class="mi">1</span><span class="p">,</span><span class="nt">"version"</span><span class="p">:</span><span class="s2">"7.2.0"</span><span class="p">,</span><span class="nt">"requirements_met"</span><span class="p">:</span><span class="mi">0</span><span class="p">}</span>
</code></pre></div>
<p>One key per probe: <code>root</code>, <code>kernel_version</code>, <code>pid_ns</code>, <code>mnt_ns</code>, <code>uts_ns</code>, <code>ipc_ns</code>, <code>pivot_root</code>, <code>procfs</code>, <code>sysfs</code>, <code>seccomp</code> are required; <code>epoll</code>, <code>signalfd</code>, <code>pty</code>, <code>devpts</code>, <code>loop</code>, <code>ext4</code>, <code>cgroup2</code>, <code>cgroup_ns</code>, <code>mount_api</code>, <code>devtmpfs</code> are recommended; <code>fuse</code>, <code>tun</code>, <code>overlayfs</code>, <code>net_ns</code>, <code>bridge</code>, <code>veth</code>, <code>macvlan</code>, <code>ipv6_nat</code>, <code>memory_limit</code>, <code>swap_limit</code>, <code>cpu_limit</code>, <code>cpu_accounting</code>, <code>pids_limit</code>, <code>user_ns</code> are optional. <code>requirements_met</code> is <code>1</code> when every required probe passed.</p>
<h2 id="examples">Examples <a class="header-anchor" href="#examples">#</a></h2>
<div class="code-block"><span class="code-lang">bash</span><button class="icon-button copy-btn" onclick="copyCode(this)" aria-label="Copy"><span class="icon" aria-hidden="true">content_copy</span></button><pre><code><span class="c1"># A first container from an image, with a port forwarded</span>
sudo<span class="w"> </span>droidspaces<span class="w"> </span>--name<span class="o">=</span>web<span class="w"> </span>--rootfs-img<span class="o">=</span>/srv/web.img<span class="w"> </span>--port<span class="o">=</span><span class="m">8080</span>:80<span class="w"> </span>start
<span class="c1"># Later starts need only the name</span>
sudo<span class="w"> </span>droidspaces<span class="w"> </span>--name<span class="o">=</span>web<span class="w"> </span>start
<span class="c1"># Watch the boot on the console</span>
sudo<span class="w"> </span>droidspaces<span class="w"> </span>--name<span class="o">=</span>web<span class="w"> </span>--foreground<span class="w"> </span>start
<span class="c1"># A shell as a user, and a one-off command with a pipe</span>
sudo<span class="w"> </span>droidspaces<span class="w"> </span>--name<span class="o">=</span>web<span class="w"> </span>enter<span class="w"> </span>alice
sudo<span class="w"> </span>droidspaces<span class="w"> </span>--name<span class="o">=</span>web<span class="w"> </span>run<span class="w"> </span>sh<span class="w"> </span>-c<span class="w"> </span><span class="s1">'ps aux | grep nginx'</span>
<span class="c1"># A script piped into the container</span>
sudo<span class="w"> </span>droidspaces<span class="w"> </span>--name<span class="o">=</span>web<span class="w"> </span>--stdin<span class="w"> </span>run<span class="w"> </span>sh<span class="w"> </span>-s<span class="w"> </span><<span class="w"> </span>setup.sh
<span class="c1"># An OpenWrt router and a client that lives behind it</span>
sudo<span class="w"> </span>droidspaces<span class="w"> </span>--name<span class="o">=</span>openwrt<span class="w"> </span>--rootfs<span class="o">=</span>/srv/openwrt<span class="w"> </span>--net<span class="o">=</span>nat<span class="w"> </span>start
sudo<span class="w"> </span>droidspaces<span class="w"> </span>--name<span class="o">=</span>kali<span class="w"> </span>--rootfs<span class="o">=</span>/srv/kali<span class="w"> </span>--net<span class="o">=</span>gateway<span class="w"> </span>--gateway<span class="o">=</span>openwrt<span class="w"> </span>start
<span class="c1"># A container on the wired LAN with its own address</span>
sudo<span class="w"> </span>droidspaces<span class="w"> </span>--name<span class="o">=</span>ubuntu<span class="w"> </span>--rootfs<span class="o">=</span>/srv/ubuntu<span class="w"> </span>--net<span class="o">=</span>macvlan<span class="w"> </span>--macvlan-parent<span class="o">=</span>eth0<span class="w"> </span>start
<span class="c1"># Try something without keeping it</span>
sudo<span class="w"> </span>droidspaces<span class="w"> </span>--name<span class="o">=</span>scratch<span class="w"> </span>--rootfs<span class="o">=</span>/srv/ubuntu<span class="w"> </span>--volatile<span class="w"> </span>start
<span class="c1"># What is running, as JSON</span>
sudo<span class="w"> </span>droidspaces<span class="w"> </span>--json<span class="w"> </span>show
</code></pre></div>
<h2 id="where-things-are">Where things are <a class="header-anchor" href="#where-things-are">#</a></h2>
<p><code><name></code> in a path has its spaces turned into dashes.</p>
<div class="table-wrap"><table>
<thead>
<tr>
<th>Path</th>
<th>Contents</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><workspace>/Containers/<name>/</code></td>
<td>the container's config and, for app-installed containers, its rootfs</td>
</tr>
<tr>
<td><code><workspace>/Logs/<name>/log</code></td>
<td>the log of each start, stop and restart</td>
</tr>
<tr>
<td><code><workspace>/Logs/droidspacesd.log</code></td>
<td>the daemon's log</td>
</tr>
<tr>
<td><code>/mnt/Droidspaces/<name></code></td>
<td>where an image rootfs is mounted while the container runs</td>
</tr>
</tbody>
</table></div>
<h2 id="exit-codes">Exit codes <a class="header-anchor" href="#exit-codes">#</a></h2>
<div class="table-wrap"><table>
<thead>
<tr>
<th>Code</th>
<th>Meaning</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>0</code></td>
<td>Success. <code>check</code> always exits <code>0</code>: read <code>requirements_met</code> instead.</td>
</tr>
<tr>
<td><code>1</code></td>
<td>A bad option or command, no root, a container name that was not found, <code>pid</code> printing <code>NONE</code>, a failed container in a <code>stop</code> list, a daemon that refused you.</td>
</tr>
<tr>
<td><code>255</code></td>
<td><code>start</code>, <code>stop</code> or <code>restart</code> failed, or <code>info</code>, <code>enter</code> or <code>run</code> found the container not running.</td>
</tr>
</tbody>
</table></div>
<p><code>run</code> and <code>enter</code> exit with the command's or the shell's own status instead: <code>128</code> plus the signal number when it was killed, <code>127</code> when the command does not exist, <code>126</code> when it exists but cannot run. A command that exits <code>255</code> itself looks the same as a failure of Droidspaces.</p>
<hr />
<p>Previous: <a href="features.html">Container settings</a> | Next: <a href="graphics-and-audio.html">Display, audio and desktop</a></p>
</article>
<p class="doc-edit"><a href="https://github.com/ravindu644/Droidspaces-OSS/edit/main/Documentation/Linux-CLI.md" rel="noopener noreferrer"><span class="icon" aria-hidden="true">edit</span>Edit this page on GitHub</a></p>
<nav class="doc-nav" aria-label="Pages"><a href="features.html" class="doc-nav-prev"><small>Previous</small>Container settings</a><a href="graphics-and-audio.html" class="doc-nav-next"><small>Next</small>Display, audio and desktop</a></nav>
</main>
<aside class="toc-column">
<nav class="toc" aria-label="On this page"><p class="toc-title">On this page</p><ul><li class="toc-h2"><a href="#commands">Commands</a></li><li class="toc-h2"><a href="#how-it-works">How it works</a></li><li class="toc-h2"><a href="#start">start</a></li><li class="toc-h2"><a href="#stop">stop</a></li><li class="toc-h2"><a href="#restart">restart</a></li><li class="toc-h2"><a href="#enter">enter</a></li><li class="toc-h2"><a href="#run">run</a></li><li class="toc-h2"><a href="#show">show</a></li><li class="toc-h2"><a href="#info">info</a></li><li class="toc-h2"><a href="#pid">pid</a></li><li class="toc-h2"><a href="#scan">scan</a></li><li class="toc-h2"><a href="#check">check</a></li><li class="toc-h2"><a href="#daemon">daemon</a></li><li class="toc-h2"><a href="#mode">mode</a></li><li class="toc-h2"><a href="#docs-help-version">docs, help, version</a></li><li class="toc-h2"><a href="#flags">Flags</a></li><li class="toc-h2"><a href="#the-config-file">The config file</a></li><li class="toc-h2"><a href="#json-output">JSON output</a></li><li class="toc-h2"><a href="#examples">Examples</a></li><li class="toc-h2"><a href="#where-things-are">Where things are</a></li><li class="toc-h2"><a href="#exit-codes">Exit codes</a></li></ul></nav>
</aside>
<footer class="footer">
<div class="footer-inner">
<div>
<a href="/" class="nav-logo"><svg viewBox="8.25 10.35 31.5 27.3" fill="currentColor" aria-hidden="true"><path d="M36.85 30.16H11.15c-0.82 0-1.48 0.68-1.48 1.52v3.05c0 0.84 0.66 1.52 1.48 1.52h25.69c0.82 0 1.48-0.68 1.48-1.52v-3.05c0-0.84-0.66-1.52-1.48-1.52ZM12.58 34.97c-0.95 0-1.73-0.79-1.73-1.77s0.77-1.77 1.73-1.77 1.73 0.79 1.73 1.77-0.77 1.77-1.73 1.77Z"/><path d="M36.85 21.00H11.15c-0.82 0-1.48 0.68-1.48 1.52v3.05c0 0.84 0.66 1.52 1.48 1.52h25.69c0.82 0 1.48-0.68 1.48-1.52v-3.05c0-0.84-0.66-1.52-1.48-1.52ZM12.58 25.82c-0.95 0-1.73-0.79-1.73-1.77s0.77-1.77 1.73-1.77 1.73 0.79 1.73 1.77-0.77 1.77-1.73 1.77Z"/><path d="M36.84 11.74H11.15c-0.82 0-1.48 0.68-1.48 1.52v3.05c0 0.84 0.66 1.52 1.48 1.52h25.69c0.82 0 1.48-0.68 1.48-1.52v-3.05c0-0.84-0.66-1.52-1.48-1.52ZM12.58 16.57c-0.95 0-1.73-0.79-1.73-1.77s0.77-1.77 1.73-1.77 1.73 0.79 1.73 1.77-0.77 1.77-1.73 1.77Z"/></svg> Droidspaces</a>
<p>A Linux container runtime for Android. It boots systemd or OpenRC as PID 1 on the phone's own kernel.</p>
</div>
<div>
<h3>Project</h3>
<ul>
<li><a href="/downloads.html">Download</a></li>
<li><a href="/docs/">Documentation</a></li>
<li><a href="/docs/community-supported-devices.html">Devices</a></li>
<li><a href="https://github.com/ravindu644/Droidspaces-OSS" rel="noopener noreferrer">GitHub</a></li>
</ul>
</div>
<div>
<h3>Community</h3>
<ul>
<li><a href="https://t.me/Droidspaces" rel="noopener noreferrer">Telegram</a></li>
<li><a href="https://github.com/ravindu644/Droidspaces-OSS/issues" rel="noopener noreferrer">Issues</a></li>
<li><a href="https://github.com/ravindu644/Droidspaces-OSS/graphs/contributors" rel="noopener noreferrer">Contributors</a></li>
</ul>
</div>
<div>
<h3>Legal</h3>
<ul>
<li><a href="https://github.com/ravindu644/Droidspaces-OSS/blob/main/LICENSE" rel="noopener noreferrer">GPLv3 licence</a></li>
<li><a href="https://github.com/Droidspaces/droidspaces.github.io" rel="noopener noreferrer">This site's source</a>, <a href="https://github.com/Droidspaces/droidspaces.github.io/blob/main/LICENSE" rel="noopener noreferrer">MIT licence</a></li>
<li>Maintained by <a href="https://github.com/ravindu644" rel="noopener noreferrer">ravindu644</a></li>
</ul>
</div>
</div>
</footer>
<a href="#" class="button button-tonal to-top" aria-label="Back to top"><span class="icon" aria-hidden="true">arrow_upward</span></a>
</div>
<dialog class="search-dialog" aria-label="Search the docs">
<form method="dialog" class="search-form">
<span class="icon" aria-hidden="true">search</span>
<input type="search" class="search-input" placeholder="Search the docs" autocomplete="off" aria-label="Search the docs">
<button class="icon-button" aria-label="Close search"><span class="icon" aria-hidden="true">close</span></button>
</form>
<ul class="search-results"></ul>
</dialog>
<script src="/assets/js/site.js?v=21a4abed9c" defer></script>
<script src="/assets/js/docs.js?v=ab2d8a3b66" defer></script>
</body>
</html>
You can’t perform that action at this time.
