summaryrefslogtreecommitdiffstats
path: root/roles/docker/tasks/install_podman.yml
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2020-02-22 01:30:41 +0100
committerSuren A. Chilingaryan <csa@suren.me>2020-02-22 01:30:41 +0100
commit1eda0736a8f72076eca51faf543b3a825359b96e (patch)
tree8e873c01eaeedda1fbd374ae74ac22c1d4dd9c12 /roles/docker/tasks/install_podman.yml
parentc42fd5cba3486068d535f38774d90aa275393b85 (diff)
downloaditm-1eda0736a8f72076eca51faf543b3a825359b96e.tar.gz
itm-1eda0736a8f72076eca51faf543b3a825359b96e.tar.bz2
itm-1eda0736a8f72076eca51faf543b3a825359b96e.tar.xz
itm-1eda0736a8f72076eca51faf543b3a825359b96e.zip
Enable DKMS if CUDA is installed and disable cgroups in nvidia-container-runtime
Diffstat (limited to 'roles/docker/tasks/install_podman.yml')
-rw-r--r--roles/docker/tasks/install_podman.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/docker/tasks/install_podman.yml b/roles/docker/tasks/install_podman.yml
index f59e778..f8c7797 100644
--- a/roles/docker/tasks/install_podman.yml
+++ b/roles/docker/tasks/install_podman.yml
@@ -11,6 +11,11 @@
- nvidia-container-runtime
when: "'cuda' in group_names"
+#https://github.com/moby/moby/issues/38729
+- name: Disable cgroups until fixes for root-less mode are landed in CentOS
+ ini_file: dest="/etc/nvidia-container-runtime/config.toml" section="nvidia-container-cli" option="no-cgroups" value="true" backup="no" create="no" state="present"
+ when: "'cuda' in group_names"
+
- name: Use vfs storage for system services (as overlay is still problematic)
lineinfile: dest="/etc/containers/storage.conf" regexp="driver\s*=" line="driver = \"vfs\"" state="present"
register: storage