-
Notifications
You must be signed in to change notification settings - Fork 909
Open
Description
Hi there,
- What version of docker are you running?
Docker version 18.09.7, build 2d0083d - What version of registrator are you running?
v7 - What version of Consul are you running?
Consul v1.6.1 - 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?
-internal=true -deregister=on-success consul-tls://consul:8501 - What is the exact command you are running your container with?
environment:
- SERVICE_CHECK_SCRIPT=curl --noproxy '*' example.com
- A log capture of all the docker events before, during, and after the issue.
2020/10/02 14:53:41 [ERR] agent: Check "service:xxxxxxxxxxxxxxxxx" failed to invoke: exec: "curl --noproxy '*' example.com": executable file not found in $PATH
Description of the problem:
I want to use health checks with Registrator and Consul, but when I add the env var SERVICE_CHECK_SCRIPT, Consul is unable to register the health check.
I have tried to change the command by this one :
environment:
- SERVICE_CHECK_SCRIPT=/usr/bin/curl --noproxy '*' example.com
But I have this error message :
fork/exec /usr/bin/curl --noproxy '*' example.com: no such file or directory
/usr/bin/curl exists in the Consul container :
ls -lah /usr/bin
-rwxr-xr-x 1 root root 214.0K Jun 5 2019 curl
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels