Skip to content

Instantly share code, notes, and snippets.

@tegila
Created April 10, 2022 00:06
Show Gist options
  • Save tegila/077710757631223fe36fad5128416f52 to your computer and use it in GitHub Desktop.
Save tegila/077710757631223fe36fad5128416f52 to your computer and use it in GitHub Desktop.
container_name=remapped
lxc init ubuntu-daily:z $container_name
lxc config set $container_name raw.idmap "both $UID 1000"
lxc config device add $container_name homedir disk source=$HOME path=/home/ubuntu
lxc start $container_name
@tegila
Copy link
Author

tegila commented Apr 10, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment