Since unraid forum is throwing a hissyfit with its captcha thing, I’ll just post it on my own website.
Issue:
root@<containername>:/data# archivebox manage createsuperuser [i] [2021-11-11 14:29:07] ArchiveBox v0.6.2: archivebox manage createsuperuser > /data [i] ArchiveBox should never be run as root! For more information, see the security overview documentation: https://github.com/ArchiveBox/ArchiveBox/wiki/Security-Overview#do-not-run-as-root
Oh noes. Open the unraid console and type:
$ sudo docker exec -it --user archivebox <containername> /bin/bash
If you do not know the name of your docker, open the console panel of the archivebox docker and search in the url for “container=”. The number behind that is the name of your docker.
So your prompt looks like this:
archivebox@<containerid>:/data$
Then run:
archivebox manage createsuperuser
Sauce: https://forums.unraid.net/topic/95296-run-docker-as-another-user/?do=findComment&comment=993988
One thought on “Archivebox Docker superuser root issues”