2016-10-31 114 views
0

有人把graylog放在openshift中? 我試圖利用三種方法,但他們都收到不同的錯誤。OpenShift> graylog和openshift

  1. http://docs.graylog.org/en/latest/pages/installation/docker.html

    /docker-entrypoint.sh:線34:EXEC:graylog:找不到

  2. https://www.graylog.org/blog/28-centralized-docker-container-logging-with-native-graylog-integration

    [錯誤13]權限被拒絕:「的/ etc/container_environment '

  3. github.com/swcc/docker-graylog2

    /opt/graylog2/embedded/lib/ruby/2.1.0/fileutils.rb:250:in`的mkdir':拒絕@ dir_s_mkdir許可 - 在/ etc/graylog2(錯誤:: EACCES)

+0

您可能想在公共郵寄名單上提問此問題:https://groups.google.com/forum/#!forum/graylog2 – joschi

+0

https://groups.google.com/forum/#!topic/ graylog2/ffKvQQDvpc4 + https://groups.google.com/forum/#!topic/openshift/bjp3BpUVGB8 – Antonio

回答

0

快速修復 - 爲graylog設置一個服務帳戶並將其設置爲anyuid scc。

oc adm policy add-scc-to-user anyuid -z useroot 

更難(但更安全)修復?爲graylog構建自己的Dockerfile並正確設置權限/用戶,因此不必以root用戶身份運行。