Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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