No database for localhost?

I just installed the docker image as:

$ docker run --name tryton-postgres -e POSTGRES_PASSWORD=mysecretpassword -e POSTGRES_DB=tryton -d postgres
$ docker run --link tryton-postgres:postgres -e DB_PASSWORD=mysecretpassword -it tryton/tryton trytond-admin -d tryton --all
$ docker run --name tryton -p 8000:8000 --link tryton-postgres:postgres -e DB_PASSWORD=mysecretpassword -d tryton/tryton

but when I go to localhost, I can’t select or type in a database. I can type in the user field, however.

How do I login to the web interface?

Hello @Nicholas welcome to the Tryton community

You could look at the guide shared by @dave Guide: Running Tryton using Docker, I think that following it you will be able to solve the doubts

Indeed you seem to have skipped the database initialization step.

It worked in that sequence on my computer…
have you modified the password and made a typo in it?
This step creates a database in postgres

$ docker run --link tryton-postgres:postgres -e DB_PASSWORD=mysecretpassword -it tryton/tryton trytond-admin -d tryton --all

you may check if that actually available and there are tables in it by:

$ docker exec -it -u postgres tryton-postgres psql

postgres=# \c tryton
You are now connected to database "tryton" as user "postgres".
tryton=# \dt
//<here a plenty of tables>
tryton=# \q

Have you tried this?? What is the result?
—————
Also, it worth modifying in the container
/etc/trytond.conf

adding the clause:

[web]
listen=0.0.0.0:8000
root=/var/lib/trytond/www

[database]
uri =  postgresql://postgres:<db_password>@postgres:5432/

<db_password> is “mysecretpassword” in the example above…

you may do that by the following command (Ubuntu)

docker exec -it -u root tryton bash -c "echo \$'[database]\nuri =  postgresql://postgres:<db_password>@postgres:5432/' >>/etc/trytond.conf"

Do that ONCE.
You also may check the result by running:

docker exec -it -u root tryton bash -c "trytond-admin -d tryton -c /etc/trytond.conf -vv" | grep -v INFO

if errors — you will see them.
Constantine.