hdt551
April 19, 2020, 12:35am
1
I want to run trytond-console and I have tryton and postgresql installed using docker.
After connecting as root inside the tryton instance…
running
trytond-console -c /etc/trytond.conf
does not work and it seems /etc/trytond.conf does not contain information for the database.
What parameters should I use for the -d part needed for trytond-console?
Thanks.
ced
(Cédric Krier)
April 19, 2020, 7:56am
2
You must run the entrypoint.sh to setup environment variables:
docker run --rm -ti tryton/tryton trytond-console -d <database name>
hdt551
April 19, 2020, 11:03am
3
Why would I run docker with --rm ? Both tryton and postgresql images are already downloaded and running.
I can run entrypoint.sh inside the tryton container but then running trytond console still errors because I do not know what parameters to put after the -d
ced
(Cédric Krier)
April 19, 2020, 11:58am
4
Because the run
command will create a new container but you do not need to keep it once the command exits.
As I showed in the example, it is the name of the database.
ced
(Cédric Krier)
Split this topic
February 21, 2023, 4:10pm
5