postgres_10_repmgr_4: Error during container creation
yassineselmi opened this issue · 0 comments
yassineselmi commented
I am using docker-compose with 1 master and 2 slaves. I configured a volume for each service in order to persist data. However, when I run docker-compose up -d
I get this error:
>>> Setting up STOP handlers...
>>> STARTING SSH (if required)...
>>> TUNING UP SSH CLIENT...
>>> STARTING SSH SERVER...
>>> STARTING POSTGRES...
>>> SETTING UP POLYMORPHIC VARIABLES (repmgr=3+postgres=9 | repmgr=4, postgres=10)...
>>> TUNING UP POSTGRES...
>>> Cleaning data folder which might have some garbage...
rm: cannot remove '/var/lib/postgresql/data/pgdata': Device or resource busy
When I remove the volume from my docker-compose file, everything works fine and the container starts correctly!