My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Docker volume wrong ownership

Emil Moe's photo
Emil Moe
·Dec 24, 2018

I'm trying to configure Odoo for Docker on Windows, but Docker keeps telling me that some of the shared volumes have wrong ownership.

It's the pgdata and modules that gives me errors.

Before initialising the containers I'm creating the folders on Windows.

version: '3.3'
services:
  odoo:
    build:
      context: https://github.com/EmilMoe/odoo10.git
    volumes:
      - ./odoo.conf:/etc/odoo/odoo.conf
      - ./addons:/mnt/addons
      - ./data:/var/lib/odoo
      - ./modules:/usr/lib/python2.7/dist-packages/odoo
    ports:
      - "8069:8069"

  db:
    image: postgres:9.6
    environment:
      - POSTGRES_PASSWORD=odoo
      - POSTGRES_USER=odoo
      - PGDATA=/var/lib/postgresql/data/pgdata
    volumes:
      - ./pgdata:/var/lib/postgresql/data/pgdata
    ports:
      - "5432:5432"