HOWTO spawn Gitea instances

Version 1.14.x and up

$ docker run --name gitea -p 8080:3000 -e GITEA__security__INSTALL_LOCK=true -d gitea/gitea:1.16.7
$ docker exec --user 1000 gitea gitea admin user create --admin --username root --password admin1234 --email root@example.com

Older versions

$ docker run --name gitea -p 8080:3000 -d gitea/gitea:1.11.8
$ firefox localhost:8080 # click to complete installation
$ docker exec --user 1000 gitea gitea admin create-user --admin --username root --password admin1234 --email root@example.com