Skip to content

chapter 10 Using UIDs to Set Permissions Across Host/Container Mounts : django.db.utils.OperationalError: unable to open database file #388

@rebortyang

Description

@rebortyang

in windows 10:
When file(db.sqlite3) is mounted into the container, its owner and group are root.I tried to modify the owner and group with root privileges,And grant 'rwx' permissions. then execute the migrate command, but it prompted

'django.db.utils.OperationalError: unable to open database file'

I tried a more violent method, directly using root to execute the migrate command, but the same error occurred.

Currently, I don't have any new methods and hope to receive help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions