title: docker-compose up postgresql error, chown: changing ownership of ‘/var/lib/postgresql/data’: Operation not permitted
body: <p>I'm working in a project and we use docker. The project was fine until last friday and today I started my computer (mac mini - macOS Sierra version 10.12.5 (16F73)) with an error.
  I'm trying to run <code>docker-compose -f dev.yml -f docker-compose.yml up</code>, but when I execute this it returns the following message :</p>
  
  <p><code>db_1        | chmod: changing permissions of ‘/var/lib/postgresql/data’: Operation not permitted</code>.</p>
  
  <p>I had deleted all the docker containers and images <code>docker rm $(docker ps -a -q)</code> <code>docker rmi $(docker images -q)</code>but the error persists.</p>
  
  <p>My docker-compose.yml is this:</p>
  
  <pre><code> version: '2'
  
   services:
  
   rabbitmq:
       restart: always
       image: rabbitmq:3.6
       environment:
         RABBITMQ_DEFAULT_USER: my_user
         RABBITMQ_DEFAULT_PASS: my_password
       ports:
         - "5672:5672"
         - "15672:15672"
     django:
       build: ./django
       command: gunicorn contactto.wsgi:application -b 0.0.0.0:8000
       environment: 
         - "TZ=Brazil/East"
       restart: always
       volumes: 
         - ./django:/usr/src/app
         - ./django/static:/usr/src/app/contactto/static
         - ./logs:/logs/
         - /asterisk/:/etc/asterisk/
       ports:
         - "8000:8000"
       links:
         - rabbitmq:rabbitmq
     node:
       build: ./node_6_8
       environment:
         - "TZ=Brazil/East"
       volumes_from:
         - django
     nginx:
       build: ./nginx
       restart: always
       environment: 
         - "TZ=Brazil/East"
       ports:
         - "80:80"
         - "443:443"
       volumes: 
         - /www/static
       volumes_from:
         - django
       links:
         - django:django
     worker:
       build: ./django
       command: su -m worker -c "celery worker -A contactto.celeryconf -Q default -n default@%h"
       environment: 
         - "TZ=Brazil/East"
       restart: always
       volumes:
         - ./django:/usr/src/app
         - ./django/static:/usr/src/app/contactto/static
         - ./logs:/logs/
         - /asterisk/:/etc/asterisk/
       links:
         - rabbitmq:rabbitmq
  
   volumes: 
     dbdata:
  </code></pre>
  
  <p>My dev.yml is this:</p>
  
  <pre><code>version: '2'
  
  services:
    db:
      image: postgres:9.5
      restart: always
      environment:
        POSTGRES_USER: my_user
        POSTGRES_PASSWORD: my_password
        POSTGRES_DB: my_db
      volumes:
        - /psqldata:/var/lib/postgresql/data
    django:
      environment:
        - "DJANGO_CONFIG_MODE=Development"
      depends_on:
        - db
    worker:
      environment:
        - "DJANGO_CONFIG_MODE=Development"
      links:
        - db:db
  </code></pre>
  
  <p>Any help would be really appreciated.</p>