Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
999efa7376
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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"