CentOS6.5 + Docker环境

构建镜像时候,报错Pulling repository失败,具体如下:

Step 0 : FROM python:3.7
Pulling repository python
Tag 3.7 not found in repository python

 

解决办法:

禁用selinux,因为selinux和LXC有冲突,故而需要禁用

vim /etc/selinux/config

# 以下是/etc/selinux/config的内容
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled  # 将SELINUX设为disabled

 

保存退出,然后重启机器。OK
 

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐