| 1 | From: =?utf-8?q?Pierre-Elliott_B=C3=A9cue?= <[email protected]> |
| 2 | Date: Sat, 17 Oct 2020 14:44:47 +0200 |
| 3 | Subject: Add references to mmdebstrap and some documentation to use it when |
| 4 | creating unprivileged container |
| 5 | |
| 6 | --- |
| 7 | templates/lxc-debian.in | 3 +++ |
| 8 | 1 file changed, 3 insertions(+) |
| 9 | |
| 10 | diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in |
| 11 | index 060e4dd..4b6a0a4 100644 |
| 12 | --- a/templates/lxc-debian.in |
| 13 | +++ b/templates/lxc-debian.in |
| 14 | @@ -28,6 +28,9 @@ for arg in "$@"; do |
| 15 | if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then |
| 16 | echo "This template can't be used for unprivileged containers." 1>&2 |
| 17 | echo "You may want to try the \"download\" template instead." 1>&2 |
| 18 | + echo "You can also use mmdebstrap --mode=unshare, and an example is found at" 1>&2 |
| 19 | + echo "https://wiki.debian.org/LXC#Unprivileged_Debian_container_by_mmdebstrap_--mode.3Dunshare " 1>&2 |
| 20 | + echo "or in /usr/share/doc/lxc-templates/README.Debian." 1>&2 |
| 21 | exit 1 |
| 22 | fi |
| 23 | done |