You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of docker are you running?
Docker version 20.10.6, build 370c289
What version of registrator are you running?
v7
Did you build a custom version of registrator? If so, what is that image?
No
What is the exact command you are running registrator with? registrator -internal=true -cleanup=true -ttl=30 -ttl-refresh=25 -retry-attempts=3 consul://consul:8500
What is the exact command you are running your container with? docker compose up
A log capture of all the docker events before, during, and after the issue.
If relevant, 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 old docker-compose works ok, e.g. Consul gets registered as consul-8300.
When you run docker compose up you should see "sha256-8500" at http://localhost:8500/v1/catalog/services. Running docker-compose up instead you should see "consul-8500" being registered.
The text was updated successfully, but these errors were encountered:
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.
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.
@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?
Docker version 20.10.6, build 370c289
v7
No
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.The text was updated successfully, but these errors were encountered: