Okay, so as a workaround to this problem, you need to override your $HOME environment variable. Try this:
kirkland@x250:~⟫ sudo /snap/bin/docker run hello-world failed to create user data directory. errmsg: Permission denied
kirkland@x250:~⟫ sudo HOME= /snap/bin/docker run -it ubuntu bash root@cb0a9845a6fe:/#
Okay, so as a workaround to this problem, you need to override your $HOME environment variable. Try this:
kirkland@x250:~⟫ sudo /snap/bin/docker run hello-world
failed to create user data directory. errmsg: Permission denied
kirkland@x250:~⟫ sudo HOME= /snap/bin/docker run -it ubuntu bash fe:/#
root@cb0a9845a6