********************************************************
xxx on pts/1 some_host.test.lcl:~
20190920_064737 Fri
$ docker run --name tryton-postgres -e POSTGRES_PASSWORD=mysecretpassword -e POSTGRES_DB=tryton -d postgres
Unable to find image 'postgres:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:41263->[::1]:53: read: connection refused.
See 'docker run --help'.
********************************************************
xxx on pts/1 some_host.test.lcl:~
20190920_064806 Fri
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
tryton/tryton latest ff6a449c3d33 5 days ago 394MB
The os is OpenSUSE Leap 15.2
Based on the message, I might surmise I should have a docker image of postgres as well as tryton.
Based on the command, I might surmise that I should have set up a user/password for that postgresql container and substituted that information in the tryton command line.
But the instructions are silent on these items and it is easier to ask.
Yes that sounds right, you need a container running postgresql with a user and password.
On Docker did the the first item in the “How to use this image”, the one that mentions how to “Start a PostgreSQL instance” not work correctly for you?
If I had been writing the instructions I would have listed all the instructions necessary from a clean install to successfully run a container with tryton.
Pull a postgres container: docker pull postgres/postgres
Start the postfresql container with the command blah, blah, blah
Configure the postgresql container for the tryton user: blah, blah, blah
Test the postgresql container by doing this and this and this.
Pull any other containers which are needed to successfully run a tryton container.
Pull a tryton container with the command : blah, blah, blah
Start the tryton container with the command : blah, blah, blah
Initialize the postgres database for the tryton server with the command: blah, blah, blah
Start the tryton daemon with the command: blah, blah, blah
Install the tryton client with the command : blah, blah, blah
Start the tryton client with the command: blah, blah, blah
Connect the tryton client to the tryton server with the command: blah, blah, blah
Trouble shooting.
Is there any place I may find such a set of instructions?
PS: If there is no such set of instructions, I understand and know time is precious. My ambition is to support the project. I would be happy to thoroughly document these steps on OpenSUSE if I can get some pointers. Virtual machines being where they are, I could check out other distributions as well if requested.
My day job is in accounting, but I have an interest in management software which is why I am here.
I want to help, but need some help to get started.
it should fetch the image if it is missing. But you got an issue with the connection to docker registry, this is something that should not happen on normal case.
The current instructions should work seamlessly on a clean setup but of course in case of problem people should check the Docker instruction.
Update: The instructions on the docker page are missing the critical first step, pulling the postgres container.
docker pull postgres:latest
After doing that, all of the other instructions work as expected and the adminstrator may login to the running tryton container to begin setup of the system.
Documentation has a maintenance cost like the rest of the software. So I prefer to document the key points under normal condition than trying to consider every possible failing cases. Your cases is very rare. I do not think it deserve more management than just this thread, nor to complicate the current working documentation.