In my case, this problem occurs because when we call the docker assembly, all the files found in the working directory, and since the docker does not start as administrator, does not have access to some files and this error is generated.
Decision:
- Move to a directory that can be accessed by any user (for example: / c)
- Create a new directory (sep)
- Create Docker File in New Directory
- Run assembly
commands:
$ cd /c $ mkdir sep $ cd sep $ touch Dockerfile
source share