Tryton-cron - how to use?

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

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.

1 Like

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

Cheers,
Wolf

1 Like