forked from cheat/cheatsheets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
distrobox
38 lines (27 loc) · 1.31 KB
/
distrobox
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
---
tags: [ container ]
---
# Create a distrobox using the Ubuntu Linux image:
distrobox-create <container_name></container_name> --image <ubuntu:latest>
# List all distrobox containers with verbose information:
distrobox-list --verbose
# Enter a distrobox:
distrobox-enter <container-name>
# Execute command on the host, while inside of a container:
distrobox-host-exec <command>
# Export an app (atom) from the container to the host (will show up in your host system's application list):
distrobox-export --app <atom> --extra-flags "--foreground"
# Export a binary (ranger) from the container to the host:
distrobox-export --bin </usr/bin/ranger> --export-path <$HOME/.local/bin>
# Export a service (syncthing) from container to the host (`--sudo` will run the service as root inside the container):
distrobox-export --service <syncthing> --extra-flags "--allow-newer-config" --sudo
# Unexport/delete an exported app (atom):
distrobox-export --app <atom> --delete
# Upgrade a container using the container's package manager:
distrobox-upgrade <container_name>
# Clone a distrobox:
distrobox-create --clone <container_name> <cloned_container_name>
# Stop a distrobox container:
distrobox-stop <container-name>
# Remove a distrobox forcefully (to remove normally, don't include `--force`):
distrobox-rm <container_name> --force