mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-14 23:17:54 +00:00
lxc-local: add --mapped-{g,u}id flags
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
4328e9e316
commit
ea8fa04fc8
@ -69,7 +69,8 @@ LXC internal arguments (do not pass manually!):
|
|||||||
[ --name <name> ]: The container name
|
[ --name <name> ]: The container name
|
||||||
[ --path <path> ]: The path to the container
|
[ --path <path> ]: The path to the container
|
||||||
[ --rootfs <rootfs> ]: The path to the container's rootfs
|
[ --rootfs <rootfs> ]: The path to the container's rootfs
|
||||||
|
[ --mapped-uid <map> ]: A uid map (user namespaces)
|
||||||
|
[ --mapped-gid <map> ]: A gid map (user namespaces)
|
||||||
EOF
|
EOF
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -88,6 +89,8 @@ while :; do
|
|||||||
--rootfs) LXC_ROOTFS="$2"; shift 2;;
|
--rootfs) LXC_ROOTFS="$2"; shift 2;;
|
||||||
-m|--metadata) LXC_CONFIG="$2"; shift 2;;
|
-m|--metadata) LXC_CONFIG="$2"; shift 2;;
|
||||||
-f|--fstree) LXC_FSTREE="$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;;
|
*) break;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user