docker icon indicating copy to clipboard operation
docker copied to clipboard

Bug in the script "wait-for-manager.sh"

Open uulyar opened this issue 5 years ago • 0 comments

When I try to mount /var/lib/postgresql/data from worker to a local host directory in my docker-compose.yml it throws the exeption: chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted

Possible solution is to change the script "wait-for-manager.sh" like that:

set -e

until test -f /healthcheck/manager-ready ; do
  >&2 echo "Manager is not ready - sleeping"
  sleep 1
done

>&2 echo "Manager is up - starting worker"

exec  "/docker-entrypoint.sh" "postgres"

citus version: 9.4.1 postgres version: 12

uulyar avatar Oct 15 '20 16:10 uulyar