sigmedia / linux-servers-bootstrap

Bootstrap scripts to install linux servers
0 stars 0 forks source link

[docker] fix docker and gpu #9

Open seblemaguer opened 3 years ago

seblemaguer commented 3 years ago

It is a bit more complicated than expected, so here is the process to add in the installation file:

  1. install nvidia-container-toolkit via yay
  2. docker/arch doesn't support cgroups for systemd, so it needs to be fixed this way:
    1. update the file /etc/nvidia-container-runtime/config.toml by replacing no-cgroups = true with no-cgroups = false
    2. update the default grub configuration /etc/default/grub by adding this systemd.unified_cgroup_hierarchy=false to the variable GRUB_CMDLINE_LINUX_DEFAULT
    3. update grub with the following command grub-mkconfig -o /boot/grub/grub.cfg
    4. restart the computer
markanderson96 commented 3 years ago

I will get to this later on today then