Browse Source

Move runroot from crio.conf to storage.conf (#10372)

pull/10374/head
Florian Ruynat 1 year ago
committed by GitHub
parent
commit
a8c1bccdd5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions
  1. 2
      roles/container-engine/cri-o/tasks/main.yaml
  2. 3
      roles/container-engine/cri-o/templates/crio.conf.j2

2
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

3
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.

Loading…
Cancel
Save