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.