Docker docker-compose cp: cannot create regular file 'xxxxx': Permission denied

1. The cause of the problem

Need to create and local mapping path, resulting in insufficient permissions

insert image description here

2. Solutions

Edit the docker-compose file to add privileged: true
and re-run docker-compose up -d

insert image description here

write at the end

I am a pure novice, and the blog I wrote was also written because of the problems encountered in learning and use, after searching for materials and solving them. If there are some errors or infringements, please contact me.

QQ: 994961015
Email: [email protected]

Guess you like

Origin blog.csdn.net/qq_37274323/article/details/104605042