Paddle Docker build cannot access mount dir in SELinux enabled docker

Paddle PaddlePaddle-Gardener 2022年3月21日 10:16 60 查看原文

源自github用户reyoung: In selinux enabled docker, even we run container as docker run -v $PWD:/paddle, /paddle cannot be accessed inside docker.

docker version is 1.12.6.

回答
2 条回答

源自github用户Yancey1989: According with http://www.projectatomic.io/blog/2015/06/using-volumes-with-docker-can-cause-problems-with-selinux/, try docker run -v $PWD:/paddle:Z ...? But usually, I keep the SELinux disable on host.

热门问题
相关推荐
推荐分类