# Demo Docker Image not running

**URL:** <https://discuss.tryton.org/t/demo-docker-image-not-running/8404>\
**Category:** System Administrator\
**Tags:** docker\
**Created:** [March 14, 2025, 5:59pm UTC](https://discuss.tryton.org/t/demo-docker-image-not-running/8404 "2025-03-14T17:59:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike\_mc](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mike\_mc](https://discuss.tryton.org/u/mike_mc)\
**Post date:** [March 14, 2025, 5:59pm UTC](https://discuss.tryton.org/t/demo-docker-image-not-running/8404/1 "2025-03-14T17:59:40Z")

</div>

Hi all,

I’m new to Tryton and try to set up the downloaded docker image. I tried several times, Tryton is running under port 8080 (the only thing I changed) but I cannot login.

I did all steps described here: [https://hub.docker.com/r/tryton/tryton/](https://hub.docker.com/r/tryton/tryton/)

But no success. Here the log:

server-1 | 12 140384589885504 [2025-03-14 16:59:03,122] INFO trytond.modules all modules loaded  
server-1 | Traceback (most recent call last):  
server-1 | File “/usr/local/bin/trytond-admin”, line 33, in   
server-1 | admin.run(options)  
server-1 | File “/usr/local/lib/python3.11/dist-packages/trytond/admin.py”, line 84, in run  
server-1 | email = input(  
server-1 | ^^^^^^  
server-1 | EOFError: EOF when reading a line  
server-1 | [2025-03-14 16:59:05 +0000] [13] [INFO] Starting gunicorn 20.1.0  
server-1 | [2025-03-14 16:59:05 +0000] [13] [INFO] Listening at: [http://0.0.0.0:8000](http://0.0.0.0:8000) (13)  
server-1 | [2025-03-14 16:59:05 +0000] [13] [INFO] Using worker: sync  
server-1 | [2025-03-14 16:59:05 +0000] [14] [INFO] Booting worker with pid: 14  
server-1 | 14 140379141107776 [2025-03-14 17:00:10,297] ERROR trytond.security login failed for ‘admin’ from ‘172.18.0.1’ on database ‘tryton’  
server-1 | 14 140379141107776 [2025-03-14 17:00:13,787] ERROR trytond.security login failed for ‘admin’ from ‘172.18.0.1’ on database ‘tryton’  
server-1 | 14 140379141107776 [2025-03-14 17:03:48,288] ERROR trytond.security login failed for ‘admin’ from ‘172.18.0.1’ on database ‘tryton’  
postgres-1 | 2025-03-14 17:03:49.350 UTC [62] LOG: checkpoint starting: time  
postgres-1 | 2025-03-14 17:05:02.581 UTC [62] LOG: checkpoint complete: wrote 730 buffers (4.5%); 1 WAL file(s) added, 0 removed, 0 recycled; write=73.019 s, sync=0.132 s,  
total=73.232 s; sync files=653, longest=0.005 s, average=0.001 s; distance=5729 kB, estimate=5729 kB; lsn=0/1EA1120, redo lsn=0/1EA1090

Any hints?

Thanks.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [March 14, 2025, 6:01pm UTC](https://discuss.tryton.org/t/demo-docker-image-not-running/8404/2 "2025-03-14T18:01:39Z")

</div>

> [@mike\_mc](#):
>
> I did all steps described here: [https://hub.docker.com/r/tryton/tryton/](https://hub.docker.com/r/tryton/tryton/)

I think you forgot the `-ti` when setup the database.

> [@mike\_mc](#):
>
> server-1 | email = input(  
> server-1 | ^^^^^^  
> server-1 | EOFError: EOF when reading a line

This shows that the input was closed when the script tried to read the email input.  
So I guess the command was run on docker without an interactive terminal.

You must relaunch `trytond-admin` with the option `--password` to set the `admin` password.

---

<div class="post-metadata">

**Author:** ![mike\_mc](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mike\_mc](https://discuss.tryton.org/u/mike_mc)\
**Post date:** [March 16, 2025, 8:42am UTC](https://discuss.tryton.org/t/demo-docker-image-not-running/8404/3 "2025-03-16T08:42:31Z")

</div>

Many thanks for the answer. As a copy+paste pro, I didn’t forget the -ti of course. Anyway, I finally got Tryton to work. Don’t ask me what I did wrong the first few times I tried.

I did it with this deploy.sh script:

```auto
#!/bin/sh

# Remove existing containers if they exist
docker rm -f tryton-postgres tryton tryton-cron tryton-postgres-1 2>/dev/null
docker ps -a --filter "ancestor=tryton/tryton" --format "{{.ID}}" | xargs docker rm -f

# Start PostgreSQL
docker run --name tryton-postgres -e POSTGRES_PASSWORD=test1234 -e POSTGRES_DB=tryton -d postgres

# Wait for PostgreSQL to be ready
echo "Waiting for PostgreSQL to be ready..."
until docker exec tryton-postgres pg_isready -U postgres; do
    sleep 2
done

# Initialize Tryton Database
docker run --link tryton-postgres:postgres -e DB_PASSWORD=test1234 -it tryton/tryton trytond-admin -d tryton --all

# Start Tryton Server
docker run --name tryton -p 9090:8000 --link tryton-postgres:postgres -e DB_PASSWORD=test1234 -d tryton/tryton

# Start Tryton Cron
docker run --name tryton-cron --link tryton-postgres:postgres -e DB_PASSWORD=test1234 -d tryton/tryton trytond-cron -d tryton

```

---

<div class="post-metadata">

**Author:** ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)\
**Post date:** [March 17, 2025, 8:43am UTC](https://discuss.tryton.org/t/demo-docker-image-not-running/8404/4 "2025-03-17T08:43:22Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
