Post Installation Recommendations don't work in docker
In Granting Your User Administrative Access there is a mention of using su
to gain admin access rights but this is what happens instead:
5981258a7dc5:~$ doas ls -l /bin/su
lrwxrwxrwx 1 root root 12 Dec 7 09:43 /bin/su -> /bin/busybox
5981258a7dc5:~$ su -l root
su: must be suid to work properly
5981258a7dc5:~$
doas
suggestion does work as expected.