one-api icon indicating copy to clipboard operation
one-api copied to clipboard

Invalid interpolation format for "healthcheck"

Open leoterry-ulrica opened this issue 1 year ago • 4 comments

docker-compose up -d部署后提示以下错误:

Invalid interpolation format for "healthcheck" option in service "one-api": "wget -q -O - http://localhost:3000/api/status | grep -o '"success":\s*true' | awk -F: '{print $2}'"

leoterry-ulrica avatar Nov 29 '23 14:11 leoterry-ulrica

same here

h1xy avatar Dec 08 '23 18:12 h1xy

same here

fatbun avatar Dec 20 '23 08:12 fatbun

same here

jjaychen1e avatar Dec 24 '23 05:12 jjaychen1e

I changed it to this: test: ["CMD-SHELL", "curl -s http://localhost:3000/api/status | tee /dev/stderr | grep '\"success\":\\s*true' || exit 1"]

levie-vans avatar Dec 29 '23 07:12 levie-vans

I changed it to this: test: ["CMD-SHELL", "curl -s http://localhost:3000/api/status | tee /dev/stderr | grep '\"success\":\\s*true' || exit 1"]

有用

xiaohuakang avatar Jun 04 '24 03:06 xiaohuakang

I changed it to this: test: ["CMD-SHELL", "curl -s http://localhost:3000/api/status | tee /dev/stderr | grep '\"success\":\\s*true' || exit 1"]

It worked for me.

Belee05 avatar Jun 05 '24 05:06 Belee05