Error running openshift/origin docker: Error running 'chcon' to set the kubelet volume root directory SELinux context

泪湿孤枕 提交于 2019-12-10 11:34:57

问题


When I run the openshift/origin docker image , I see this error in logs of the container ($ docker logs origin).

Error running 'chcon' to set the kubelet volume root directory SELinux context

Is this a known issue or can it be ignored or did I miss anything?

The commandline I used is as docker run -d --name "origin" -e "http_proxy=$http_proxy" -e "https_proxy=$https_proxy" -e "no_proxy=$no_proxy" --privileged --pid=host --net=host -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys openshift/origin start --cors-allowed-origins='.*'

Some information of my OS and environment: 3.12.28-4-default SUSE Linux Enterprise Server 12 (x86_64) VERSION = 12 PATCHLEVEL = 0 NAME="SLES" VERSION="12" VERSION_ID="12" PRETTY_NAME="SUSE Linux Enterprise Server 12" ID="sles"


回答1:


That error can be ignored unless you are trying to run with SELinux enabled. The container is trying to set the label on the volumes directory to ensure that labels are properly inherited.



来源:https://stackoverflow.com/questions/34716091/error-running-openshift-origin-docker-error-running-chcon-to-set-the-kubelet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!