Skip to content

Instantly share code, notes, and snippets.

@tegila
Last active June 16, 2022 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tegila/ec39ca431c5a92f2419fc356dbeead39 to your computer and use it in GitHub Desktop.
Save tegila/ec39ca431c5a92f2419fc356dbeead39 to your computer and use it in GitHub Desktop.
printf "uid $(id -u) 1000\ngid $(id -g) 1000"  | lxc config set docker1 raw.idmap -

lxc config device add docker1 export disk source=/export/docker1 path=/export
/var/log/lxd/mail1/lxc.conf

lxc.idmap = u 0 100000 1000
lxc.idmap = g 0 100000 1000
lxc.idmap = u 1000 1000 1
lxc.idmap = g 1000 1000 1
lxc.idmap = u 1001 101001 64535
lxc.idmap = g 1001 101001 64535
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment