After entering these commands inside the container as root:
# useradd -r -g archivebox -G audio,video archivebox
# mkdir -p /home/archivebox/data
# chown -R archivebox:archivebox /home/archivebox
(FYI an "archivebox" user already existed for me too)
Next do:
# su archivebox
And then:
$ cd /data
And run:
$ archivebox manage createsuperuser
# Another route to the same thing:
You can exit the container and do this:
$ sudo docker exec -it --user archivebox <containername> /bin/bash
So your prompt looks like this:
archivebox@<containerid>:/data$
Then run:
archivebox manage createsuperuser
Either way, you need to be in the "/data" folder where the index.sqlite3 resides to have this work (eventually...)
Also, didn't even need to change any environment variables (e.g. USER=archivebox) in my docker-compose.yml or .env file.
Restarted the container and the new login worked in the GUI.
✌