| 1 |
Unprivileged containers without the download template |
| 2 |
===================================================== |
| 3 |
|
| 4 |
As a non-privileged user: |
| 5 |
|
| 6 |
$ cd .local/share/lxc |
| 7 |
$ mkdir mmdebstrap-unpriv/rootfs -p |
| 8 |
$ mmdebstrap --mode=unshare --components="main contrib non-free" --variant=important buster mmdebstrap-unpriv/rootfs |
| 9 |
|
| 10 |
--variant=important can be replaced by --variant=minbase --include=systemd-sysv |
| 11 |
In the container you should change /etc/hostname |
| 12 |
|
| 13 |
If you rely on a btrfs subvolume or partition, remember creating it before, and |
| 14 |
mounting it on mmdebstrap-unpriv/rootfs. |