-
Hi I'm new to lima, Ideally I'd like to use Thanks for the help, apologies for being new. edit: changed useradd to addgroup |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I assume you meant The reason the new group is not reflected in ssh sessions is that The easiest way to get around this is to stop and restart the VM. Then the new group assignment should work properly: $ limactl shell alpine sudo addgroup $USER docker
$ limactl shell alpine id
uid=501(jan) gid=1000(jan) groups=1000(jan)
$ limactl stop alpine
[...]
$ limactl start alpine
[...]
$ limactl shell alpine id
uid=501(jan) gid=1000(jan) groups=101(docker),1000(jan) |
Beta Was this translation helpful? Give feedback.
-
I forgot to mention: since Alpine runs from an ISO image, you will have to re-run the This reminds me that we should set up a package cache, so the packages don't have to be re-downloaded every time. |
Beta Was this translation helpful? Give feedback.
I assume you meant
addgroup
instead ofuseradd
.The reason the new group is not reflected in ssh sessions is that
limactl shell
is not establishing a new session in the VM, but re-using a "master control socket". Runningsudo
inside the VM starts a new session, and the new group membership will be effective.The easiest way to get around this is to stop and restart the VM. Then the new group assignment should work properly: