错误日志查看: docker logs -f 容器_id
解决方法一:
关闭SELinux
临时关闭: setenforce 0
永久关闭:vim /etc/selinux/config
将SELINUX=enforcing 改为SELINUX=disabled
设置后需要重启服务器才能生效
解决方法二:
在 docker-compose.yml 配置加入权限配置:
privileged: true
原文:https://www.cnblogs.com/xiao-xue-di/p/14949650.html