Presuming you have access to the Sourcegraph Docker container and the container name is sourcegraph
:
- Get the id for the admin account (should be 1 in most cases):
docker container exec sourcegraph psql -U postgres sourcegraph -c 'SELECT id, username, passwd FROM users'
- Set the
$ID
variable: