# Tryton-cron - how to use?

**URL:** https://discuss.tryton.org/t/tryton-cron-how-to-use/3078
**Category:** User
**Created:** [July 29, 2020, 12:38pm UTC](https://discuss.tryton.org/t/tryton-cron-how-to-use/3078 "2020-07-29T12:38:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![herrdeh](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/herrdeh/32/821_2.png) [@herrdeh](https://discuss.tryton.org/u/herrdeh)
#### Post date: [July 29, 2020, 12:38pm UTC](https://discuss.tryton.org/t/tryton-cron-how-to-use/3078/1 "2020-07-29T12:38:07Z")

</div>

I’m trying to run tryton-cron, as described here:  
https://hub.docker.com/r/tryton/tryton/

> $ sudo docker ps  
> CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES  
> 18ccc2fcd7db tryton/tryton “/entrypoint.sh uwsg…” 3 months ago Up 4 minutes 0.0.0.0:8000-\>8000/tcp tryton  
> ed01cfc74801 postgres “docker-entrypoint.s…” 3 months ago Up 4 minutes 5432/tcp tryton-postgres

Now, with the given command, this happens (passwd replaced by real PW):

> $ sudo docker run --name tryton-cron --link tryton-postgres:postgres -e DB\_PASSWORD=mysecretpassword -d tryton/tryton trytond-cron -d tryton  
> docker: Error response from daemon: Conflict. The container name “/tryton-cron” is already in use by container “fb38caeb97739e1ad62acea498ae053b523b18e88390f5c1e8f49bee2c46fa1a”. You have to remove (or rename) that container to be able to reuse that name.

What should I do?

Cheers,  
Wolf

---

<div class="post-metadata">

### Author: ![dave](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://discuss.tryton.org/u/dave)
#### Post date: [July 29, 2020, 12:59pm UTC](https://discuss.tryton.org/t/tryton-cron-how-to-use/3078/2 "2020-07-29T12:59:47Z")

</div>

It looks like you already have a docker container called tryton-cron.

The `docker ps` command only lists containers that are currently running, try using `sudo docker ps --all` to see a list of running and stopped containers.

You can use `sudo docker rm <container>` to remove the container.

Once the old tryton-cron container has been removed your command should then work.

---

<div class="post-metadata">

### Author: ![herrdeh](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/herrdeh/32/821_2.png) [@herrdeh](https://discuss.tryton.org/u/herrdeh)
#### Post date: [July 29, 2020, 1:13pm UTC](https://discuss.tryton.org/t/tryton-cron-how-to-use/3078/3 "2020-07-29T13:13:18Z")

</div>

Mr. Harper - docker hero!  
Good to know that `sudo docker ps --all` exists.  
Worked - thank you very much!

Cheers,  
Wolf

---

<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: [August 28, 2020, 1:13pm UTC](https://discuss.tryton.org/t/tryton-cron-how-to-use/3078/4 "2020-08-28T13:13:24Z")

</div>

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