Wow. It seems really clunky indeed: https://docs.docker.com/engine/security/rootless/
Check your distribution's documentation for the easy way.