Error mounting a config file into the container

前端 未结 2 699
小鲜肉
小鲜肉 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 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.

提交回复
热议问题