2017-10-07 3 views
3
verweigert

Nach dem https://github.com/fnproject/fnCentos: fn beginnen: keine Montage auf/sys/kernel/Sicherheit fehlgeschlagen: Permission

fn der Installation Ich betreibe "fn start" als root

bekomme ich folgende Fehler

[[email protected] my-docker-app]# fn start 
sh: overlay: unknown operand 
mount: mounting none on /sys/kernel/security failed: Permission denied 
Could not mount /sys/kernel/security. 
AppArmor detection and --privileged mode might break. 
mount: permission denied (are you root?) 
time="2017-10-07T09:42:36Z" level=error msg="couldn't ping db" error="unable to open database file" url=/app/data/fn.db 
time="2017-10-07T09:42:36Z" level=fatal msg="Error initializing datastore." error="unable to open database file" 
2017/10/07 11:42:37 error: proce 

ssed finished with error exit status 1 

Hilfe?

Centos-Version und fn Version

[[email protected] my-docker-app]# cat /etc/os-release 
NAME="CentOS Linux" 
VERSION="7 (Core)" 
ID="centos" 
ID_LIKE="rhel fedora" 
VERSION_ID="7" 
PRETTY_NAME="CentOS Linux 7 (Core)" 
ANSI_COLOR="0;31" 
CPE_NAME="cpe:/o:centos:centos:7" 
HOME_URL="https://www.centos.org/" 
BUG_REPORT_URL="https://bugs.centos.org/" 

CENTOS_MANTISBT_PROJECT="CentOS-7" 
CENTOS_MANTISBT_PROJECT_VERSION="7" 
REDHAT_SUPPORT_PRODUCT="centos" 
REDHAT_SUPPORT_PRODUCT_VERSION="7" 

[[email protected] my-docker-app]# fn version 
Client version: 0.4.7 
ERROR: Get http://localhost:8080/version: dial tcp [::1]:8080: getsockopt: connection refused 
[[email protected] my-docker-app]# 
+0

Bitte fügen Sie die Ausgabe von 'docker version' zu Ihrer Frage hinzu und auch die Ausgabe von' cat/etc/os-release' –

+0

Stack Overflow ist eine Website für Programmier- und Entwicklungsfragen. Diese Frage scheint off-topic zu sein, weil es nicht um Programmierung oder Entwicklung geht. Siehe [Welche Themen kann ich hier fragen?] (Http://stackoverflow.com/help/on-topic) in der Hilfe. Vielleicht [Super User] (http://superuser.com/) oder [Unix & Linux Stack Exchange] (http://unix.stackexchange.com/) wäre ein besserer Ort, um zu fragen. – jww

+0

@Lalwani Anbei die Version. – venergiac

Antwort

1

Sie müssen deaktivieren Security-Enhanced Linux (SELinux), Its aufgrund dieser verursacht.

Ausgabe der folgende Befehl als Root deaktivieren für temporaryly selinux

$ setenforce 0

OR

  • vi/etc/sysconfig/selinux
  • Ändern des Wert SELINUX wie unten
  • SELINUX = deaktiviert
  • Neustart
Verwandte Themen