【docker】python: can't open file 'helloworld.py': [Errno 13] Permission denied


運行容器提示權限問題

docker run  -v $PWD/myapp:/usr/src/myapp  -w /usr/src/myapp python:3.5 python helloworld.pyhello

python: can't open file 'helloworld.py': [Errno 13] Permission denied

 

關閉selinux可解決:setenforce 0


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM