pg-slave_1 | Waiting for master to ping... pg-slave_1 | /usr/local/bin/docker-entrypoint.sh: line 39: ping: command not found It is necessary to install ping. It is solved adding in the Dockerfile: RUN apt-get update RUN apt-get install iputils-ping -y