Tuesday, May 25, 2021

Failed to solve with frontend dockerfile.v0: failed to read dockerfile: error from sender: open .Trash: operation not permitted

 Issue

admin@admins-MacBook-Pro ~ % docker-compose build              

Building ubunut/latest

[+] Building 0.1s (1/2)                                                         

 => ERROR [internal] load build definition from Dockerfile                 0.1s

 => => transferring dockerfile: 53B                                        0.0s

------

 > [internal] load build definition from Dockerfile:

------

failed to solve with frontend dockerfile.v0: failed to read dockerfile: error from sender: open /Users/admin/.Trash: operation not permitted

ERROR: Service 'ubunut/latest' failed to build : Build failed


Solution


We have to give full access to terminal application via system preference >> Security & Privacy. 









No comments: