docker-library / healthcheck

https://github.com/docker/docker/issues/21142 prototypes

Home Page:https://github.com/docker-library/faq#healthcheck

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Healthcheck script execution permissions in alpine

REDNBLACK opened this issue · comments

commented

Healthcheck scripts didn't work (timeout and service unhealthy in docker ps) in alpine images of rabbitmq and postgres, until i added the following command in Dockerfile:
RUN chmod +x /usr/local/bin/docker-healthcheck

Docker CE v17.03.0-ce-mac2 (15654)

You need to invoke chmod +x on your local copy of the script if you didn't use git clone to download the repository before building. 👍