flower
flower copied to clipboard
Docker tag "latest" isn't latest
Background
I started getting some problems with flower when I upgraded to Celery 5, had to fiddle around quite a bit until I found this configuration in my docker-compose to work
flower:
image: mher/flower:latest
networks:
- ${PUBLIC_NETWORK?Variable not set}
- default
depends_on:
- queue
- pdf-celeryworker
- celeryworker
env_file:
- .env
command: celery flower
# The ones below did not work anymore
# - "--broker=amqp://[REDACTED]:5672//"
# - "celery --broker=amqp://[REDACTED]:5672// flower"
environment:
CELERY_BROKER_URL: "amqp://[REDACTED]:5672//"
CELERY_RESULT_BACKEND: "rpc://[REDACTED]//"
deploy:
labels:
[REDACTED]
After some more investigation that the latest
-tag pushed at "2021-07-07T01:41:23.237381Z"
is actually a previous version, 0.9.5.
This can be verified by running flower --version
inside of the container.
docker-compose exec flower flower --version
0.9.5
4.4.7 (cliffs)
From the releases on GitHub I expected latest to be version 1.0, but no tag at version 1 seem to exists.
I saw that as well
Just ran into this as well.
I know docker hub is charging for auto builds soon - maybe related?
It's pretty straightforward to use flower as a pip library, but debugging this did lose me a few hours of my life.
I had the same issue. For the benefit of google searchers flower in docker was throwing "exited with code 127" error on the :latest tag.
I've created https://github.com/mher/flower/pull/1181 which should fix this.