运行docker-compose时出现Errno 13 [英] Errno 13 while running docker-compose up
本文介绍了运行docker-compose时出现Errno 13的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用django构建应用程序,我想将docker添加到该项目中。
I'm building an application using django and I wanted to add docker to this project.
我正在尝试运行
sudo docker-compose up
这给了我这个输出:
ERROR: .IOError: [Errno 13] Permission denied: './docker-compose.yml'
我使用GUI检查了权限。一切都很好。
I checked the permissions using GUI. Everything is fine.
我正在尝试从已安装的驱动器上运行我的应用程序。我也在其他驱动器上进行了测试。这个问题没有出现的唯一驱动器是我的主驱动器正在运行Ubuntu 18.04。
I'm trying to run my app from an mounted drive. I also tested it on other drives. The only drive this problem does not appear is my main drive running Ubuntu 18.04.
期待一些答案
推荐答案
使用apparmor重新配置工具添加运行 docker-compose.yml
的目录:
adding the directory where I am running my docker-compose.yml
using the apparmor reconfigure tool:
$ sudo dpkg-reconfigure apparmor
这篇关于运行docker-compose时出现Errno 13的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文