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
* Containerized libguestfs including virt-customize, guestfish, etc.
4
-
* Scripts
4
+
* Runs as non-root user
5
+
* Multi-platform image
6
+
* Helper scripts
5
7
*`guestfish` — Opens the raw image disk file using guestfish.
6
8
*`virt-customize` — Opens the raw image disk using libguestfs' virt-customize.
7
9
*`pi` — Opens the raw image disk using a dockerized ARM emulator that emulates a Raspberry Pi.
@@ -30,23 +32,52 @@ Following platforms for this image are available:
30
32
* linux/amd64
31
33
* linux/arm/v7
32
34
* linux/arm64/v8
33
-
* linux/riscv64
34
35
* linux/ppc64le
36
+
* linux/riscv64
35
37
* linux/s390x
36
38
39
+
## Environment variables
40
+
41
+
*`TZ`: The timezone assigned to the container (default `UTC`)
42
+
*`PUID`: The user id to use (default `1000`)
43
+
*`PGID`: The group id to use (default `1000`)
44
+
*`LIBGUESTFS_DEBUG`: Set this to 1 in order to enable massive amounts of debug messages. If you think there is some problem inside the libguestfs appliance, then you should use this option. (default: `0`)
45
+
*`LIBGUESTFS_TRACE`: Set this to 1 and libguestfs will print out each command / API call in a format which is similar to guestfish commands. (default: `0`)
@@ -57,6 +88,26 @@ the `guestfish` tool and executes all guestfish commands enclosed by `COMMANDS`
57
88
58
89
In this case the directory `/boot` and its contents is copied to data.
59
90
91
+
> :bulb: Did you notice the leading dash in front of the `copy-out` command? Running guestfish non-interactively the first command that gives an error causes the whole shell to exit. By prefixing a command with `-` guestfish will not exit if an error is encountered.
92
+
93
+
> :bulb: If you prefix a command with `!` (e.g. `!id`) the command will run on the host instead of the mounted guest. Since the libguestfs tools are containerized themselves, "host" signifies the containerized libguestfs hosting Ubuntu installation — and not you actual OS.
94
+
95
+
96
+
## Troubleshooting
97
+
98
+
If you run into problems, try running your intended steps
0 commit comments