one-api
one-api copied to clipboard
Invalid interpolation format for "healthcheck"
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}'"
same here
same here
same here
I changed it to this:
test: ["CMD-SHELL", "curl -s http://localhost:3000/api/status | tee /dev/stderr | grep '\"success\":\\s*true' || exit 1"]
I changed it to this:
test: ["CMD-SHELL", "curl -s http://localhost:3000/api/status | tee /dev/stderr | grep '\"success\":\\s*true' || exit 1"]
有用
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.