From ea8fa04fc89ae566a336514ef069ee66cf5330d2 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 27 Feb 2018 14:12:50 +0100 Subject: [PATCH] lxc-local: add --mapped-{g,u}id flags Signed-off-by: Christian Brauner --- templates/lxc-local.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/lxc-local.in b/templates/lxc-local.in index 20c0c35c3..552a4946d 100644 --- a/templates/lxc-local.in +++ b/templates/lxc-local.in @@ -69,7 +69,8 @@ LXC internal arguments (do not pass manually!): [ --name ]: The container name [ --path ]: The path to the container [ --rootfs ]: The path to the container's rootfs - +[ --mapped-uid ]: A uid map (user namespaces) +[ --mapped-gid ]: A gid map (user namespaces) EOF return 0 } @@ -88,6 +89,8 @@ while :; do --rootfs) LXC_ROOTFS="$2"; shift 2;; -m|--metadata) LXC_CONFIG="$2"; shift 2;; -f|--fstree) LXC_FSTREE="$2"; shift 2;; + --mapped-uid) LXC_MAPPED_UID="$2"; shift 2;; + --mapped-gid) LXC_MAPPED_GID="$2"; shift 2;; *) break;; esac done