Error mounting a config file into the container

前端 未结 2 676
小鲜肉
小鲜肉 2021-01-05 00:47

Edit: I\'m on windows.

I am experimenting with docker-compose. I know that I should use a Dockerfile to copy a file into the container, but I want to solve

相关标签:
2条回答
  • 2021-01-05 00:58

    To add a users group to a directory in Windows follow these steps:

    1. Right-click the directory
    2. Click properties
    3. click the security tab
    4. click the "Edit" button.
    5. click the add button
    6. Type "users" in the text box
    7. click "Check Names" (should auto fill/update for you)
    8. click okay
    9. Highlight your newly added group.
    10. Under "Permissions for [User/Groupname]" select Full control
    11. click apply
    12. Click "OK"
    13. Click "OK"

    See also this Docker issue: https://github.com/docker/for-win/issues/3385

    0 讨论(0)
  • 2021-01-05 01:14

    (I added the same problem few minutes ago.)

    Make sure your docker is allowed to mount the directory C:\Users\[redacted]\Documents\Docker

    Configuration

    In the Windows client, you can configure the docker to allow read/write on specific drives. This should fix your permissions problem.

    Already configured ?

    In my case, it was already selected. I unchecked and checked the drive again. Apply the "change". It prompted me for my Windows password (which had change) and than the mount worked again.

    0 讨论(0)
提交回复
热议问题