diff --git a/roles/container-engine/cri-o/tasks/main.yaml b/roles/container-engine/cri-o/tasks/main.yaml index 6344f0393..f5df97467 100644 --- a/roles/container-engine/cri-o/tasks/main.yaml +++ b/roles/container-engine/cri-o/tasks/main.yaml @@ -133,6 +133,8 @@ value: '"overlay"' - option: graphroot value: '"/var/lib/containers/storage"' + - option: runroot + value: '"/var/run/containers/storage"' # metacopy=on is available since 4.19 and was backported to RHEL 4.18 kernel - name: Cri-o | set metacopy mount options correctly diff --git a/roles/container-engine/cri-o/templates/crio.conf.j2 b/roles/container-engine/cri-o/templates/crio.conf.j2 index f882ed620..80dc80d05 100644 --- a/roles/container-engine/cri-o/templates/crio.conf.j2 +++ b/roles/container-engine/cri-o/templates/crio.conf.j2 @@ -20,7 +20,8 @@ root = "/var/lib/containers/storage" # Path to the "run directory". CRI-O stores all of its state in this directory. -runroot = "/var/run/containers/storage" +# Read from /etc/containers/storage.conf first so unnecessary here +# runroot = "/var/run/containers/storage" # Storage driver used to manage the storage of images and containers. Please # refer to containers-storage.conf(5) to see all available storage drivers.