So your like me right? You've removed yourself from sudo or wheel group while trying to add yourself to the docker group
And you wanna keep your uptime or don't wanna connect cables to fix it on your homeserver, so here's the guide
Step 1: run docker run --rm -it -v /:/rootfs busybox:1.35.0
If you run docker as root or via a service, you can do ANYTHING on the rootfs in the container