소스 검색

crio: restorcon /var/lib/containers

When using the cri-o system container some items in /var/lib/containers
end up having incorrect labels. This runs restorecon -R
/var/lib/containers after the system container is installed.
Steve Milner 7 년 전
부모
커밋
999efa7376
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      roles/docker/tasks/systemcontainer_crio.yml

+ 4 - 0
roles/docker/tasks/systemcontainer_crio.yml

@@ -166,6 +166,10 @@
     dest: /etc/cni/net.d/openshift-sdn.conf
     src: 80-openshift-sdn.conf.j2
 
+- name: Fix SELinux Permissions on /var/lib/containers
+  command: "restorecon -R /var/lib/containers/"
+  changed_when: false
+
 - name: Start the CRI-O service
   systemd:
     name: "cri-o"