Sign in
Log inSign up

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"
Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct