Open rakyi opened 3 years ago
Can confirm. Was hit by this myself.
Does anyone know of an alternative to this project since it seems dead/unmaintained? Would rather go down that road than trying to hack a fix in a self-maintained fork.
Can confirm. Was hit by this myself.
Does anyone know of an alternative to this project since it seems dead/unmaintained? Would rather go down that road than trying to hack a fix in a self-maintained fork.
This one? https://github.com/marcuslinke/registrator/tree/swarm-mode (latest image is marcuslinke/registrator:2019-03-28)
@brunocascio Thanks, that looks like it has a bunch of nice fixes. However, not surprisingly, it exhibits the same naming problem with Docker 20.10 and the docker compose v2 CLI.
Does anyone know if the problem could have to do with registrator
itself, or maybe go-dockerclient
?
registrator -internal=true -cleanup=true -ttl=30 -ttl-refresh=25 -retry-attempts=3 consul://consul:8500
docker compose up
Dockerfile
for application that is having issues.Description of the problem:
When I run my containers with the new compose-cli (
docker compose
), registrator uses string "sha256" as the name/prefix for all services in Consul, e.g. Consul itself is registered as sha256-8300. Using olddocker-compose
works ok, e.g. Consul gets registered as consul-8300.How reproducible:
Using this
docker-compose.yml
:When you run
docker compose up
you should see "sha256-8500" at http://localhost:8500/v1/catalog/services. Runningdocker-compose up
instead you should see "consul-8500" being registered.